Another simplification

pull/187/head
M66B 5 years ago
parent d155f93a59
commit 93c114d870

@ -1748,10 +1748,10 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
} }
// Autofix too many simultaneous connections // Autofix too many simultaneous connections
if (ConnectionHelper.isMaxConnections(last_fail)) {
boolean auto_optimize = prefs.getBoolean("auto_optimize", false); boolean auto_optimize = prefs.getBoolean("auto_optimize", false);
if (auto_optimize && if (auto_optimize ||
ConnectionHelper.isMaxConnections(last_fail)) { account.last_connected == null ||
if (account.last_connected == null ||
now - account.last_connected > AUTOFIX_TOO_MANY_FOLDERS) { now - account.last_connected > AUTOFIX_TOO_MANY_FOLDERS) {
int user = 0; int user = 0;
int system = 0; int system = 0;

Loading…
Cancel
Save