mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2024-11-19 02:29:25 +01:00
Merge pull request #48 from lambdaupb/reconnectLoopFix
McsService does not back off on Failure (Untested Patch included)
This commit is contained in:
commit
9870ba795f
@ -377,11 +377,9 @@ public class McsService extends Service implements Handler.Callback {
|
||||
sslSocket.close();
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
if (currentDelay == 0) {
|
||||
sendBroadcast(new Intent("org.microg.gms.gcm.RECONNECT"), "org.microg.gms.STATUS_BROADCAST");
|
||||
} else {
|
||||
scheduleReconnect(this);
|
||||
}
|
||||
|
||||
scheduleReconnect(this);
|
||||
|
||||
alarmManager.cancel(heartbeatIntent);
|
||||
if (wakeLock != null) {
|
||||
wakeLock.release();
|
||||
|
Loading…
Reference in New Issue
Block a user