mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +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:
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
Block a user