Linear backoff: 1 and 5 min

This commit is contained in:
M66B
2022-03-12 23:20:21 +01:00
parent 929f9b4f91
commit a99dd7cd17
2 changed files with 4 additions and 3 deletions

View File

@@ -2391,7 +2391,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
}
} else {
// Linear back-off
int b = backoff + 60;
int b = backoff + (backoff < CONNECT_BACKOFF_INTERMEDIATE * 60 ? 60 : 5 * 60);
if (b > CONNECT_BACKOFF_ALARM_MAX * 60)
b = CONNECT_BACKOFF_ALARM_MAX * 60;
state.setBackoff(b);