Consider mac connections as I/O error

This commit is contained in:
M66B
2020-02-27 12:35:12 +01:00
parent d88b7036e1
commit 762e4ee6ec
2 changed files with 2 additions and 18 deletions

View File

@@ -873,10 +873,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
EntityLog.log(ServiceSynchronize.this, account.name + " alert: " + message);
boolean max = isMaxConnections(message);
if (max)
state.setMaxConnections();
if (!max || state.getBackoff() > CONNECT_BACKOFF_MAX)
if (!isMaxConnections(message))
try {
NotificationManager nm = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
nm.notify("alert:" + account.id, 1,
@@ -906,10 +903,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
boolean ioError = false;
Throwable c = ex;
while (c != null) {
boolean max = isMaxConnections(c.getMessage());
if (max)
state.setMaxConnections();
if (max ||
if (isMaxConnections(c.getMessage()) ||
c instanceof IOException ||
c instanceof ConnectionException ||
c instanceof AccountsException ||