Pebble: always set token to -1 before waiting for a new one
This could fix potential problems with app installation
This commit is contained in:
parent
e6a0c35f73
commit
0c872a920e
|
@ -123,6 +123,7 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
|||
mBinarySize = pi.getFileSize();
|
||||
mBytesWritten = 0;
|
||||
writeInstallApp(mPebbleProtocol.encodeUploadStart(pi.getType(), mInstallSlot, mBinarySize));
|
||||
mAppInstallToken = -1;
|
||||
mInstallState = PebbleAppInstallState.WAIT_TOKEN;
|
||||
break;
|
||||
case WAIT_TOKEN:
|
||||
|
|
Loading…
Reference in New Issue