1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00
This commit is contained in:
M66B 2020-08-10 13:05:45 +02:00
parent acbb2fb894
commit 810d3604d9

View file

@ -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);
}
}
}