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:
Andreas Shimokawa 2015-08-17 22:49:53 +02:00
parent e6a0c35f73
commit 0c872a920e
1 changed files with 1 additions and 0 deletions

View File

@ -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: