mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Cleanup
This commit is contained in:
@@ -108,7 +108,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
private MutableLiveData<List<TupleAccountState>> liveAccountState = new MutableLiveData<>();
|
||||
private MediatorState liveAccountNetworkState = new MediatorState();
|
||||
|
||||
private static final long YIELD_DURATION = 200L; // milliseconds
|
||||
private static final long QUIT_DELAY = 5 * 1000L; // milliseconds
|
||||
private static final long STILL_THERE_THRESHOLD = 3 * 60 * 1000L; // milliseconds
|
||||
static final int DEFAULT_POLL_INTERVAL = 0; // minutes
|
||||
@@ -771,11 +770,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
||||
else {
|
||||
EntityLog.log(this, "### waking up account=" + account);
|
||||
state.release();
|
||||
try {
|
||||
Thread.sleep(YIELD_DURATION);
|
||||
} catch (InterruptedException ex) {
|
||||
Log.w(ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user