diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index f6a1ae7481..184bd7b5ad 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -275,11 +275,6 @@ public class ServiceSynchronize extends LifecycleService { } } }); - - try { - Thread.sleep(YIELD_DURATION); - } catch (InterruptedException ignored) { - } } }); } @@ -1256,7 +1251,6 @@ public class ServiceSynchronize extends LifecycleService { } } }); - state.yield(); } } }; @@ -2465,12 +2459,6 @@ public class ServiceSynchronize extends LifecycleService { // Reduce memory usage ((IMAPMessage) isub[j]).invalidateHeaders(); } - - if (state.running()) - try { - Thread.sleep(100); - } catch (InterruptedException ignored) { - } } // Delete not synchronized messages without uid @@ -2520,12 +2508,6 @@ public class ServiceSynchronize extends LifecycleService { // Free memory ((IMAPMessage) isub[j]).invalidateHeaders(); } - - if (state.running()) - try { - Thread.sleep(100); - } catch (InterruptedException ignored) { - } } } @@ -3044,7 +3026,6 @@ public class ServiceSynchronize extends LifecycleService { } } }); - state.yield(); } } }; @@ -3192,11 +3173,6 @@ public class ServiceSynchronize extends LifecycleService { } } }); - - try { - Thread.sleep(YIELD_DURATION); - } catch (InterruptedException ignored) { - } } } @@ -3255,7 +3231,6 @@ public class ServiceSynchronize extends LifecycleService { void start() { thread.start(); - yield(); } void stop() {