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();
|
mBinarySize = pi.getFileSize();
|
||||||
mBytesWritten = 0;
|
mBytesWritten = 0;
|
||||||
writeInstallApp(mPebbleProtocol.encodeUploadStart(pi.getType(), mInstallSlot, mBinarySize));
|
writeInstallApp(mPebbleProtocol.encodeUploadStart(pi.getType(), mInstallSlot, mBinarySize));
|
||||||
|
mAppInstallToken = -1;
|
||||||
mInstallState = PebbleAppInstallState.WAIT_TOKEN;
|
mInstallState = PebbleAppInstallState.WAIT_TOKEN;
|
||||||
break;
|
break;
|
||||||
case WAIT_TOKEN:
|
case WAIT_TOKEN:
|
||||||
|
|
Loading…
Reference in New Issue