mirror of
https://github.com/TeamVanced/VancedMicroG
synced 2025-02-01 21:47:31 +01:00
Reconnect Loop because of skipping backOff logic
currentDelay would stay 0 if error occurs in connect() method, resulting in busy-loop on network failures. Fix by always calling scheduleReconnect() which contains backoff logic.
This commit is contained in:
parent
cf7c72c14f
commit
788eddc31e
@ -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…
x
Reference in New Issue
Block a user