1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 11:26:47 +01:00

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

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: