Revert "Logaritmic back-off on auth failures"

This reverts commit bea7334df9.
This commit is contained in:
M66B 2021-09-06 22:38:24 +02:00
parent 7ed38b50fe
commit 640eff97d0
1 changed files with 1 additions and 6 deletions

View File

@ -1401,12 +1401,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} else {
Log.e(ex);
try {
int backoff = state.getBackoff();
if (backoff < 2 * CONNECT_BACKOFF_ALARM_MAX * 60)
backoff = 2 * CONNECT_BACKOFF_ALARM_MAX * 60;
else if (backoff < 8 * CONNECT_BACKOFF_ALARM_MAX * 60)
backoff *= 2;
state.setBackoff(backoff);
state.setBackoff(2 * CONNECT_BACKOFF_ALARM_MAX * 60);
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify("receive:" + account.id,
NotificationHelper.NOTIFICATION_TAGGED,