Removed yields on main thread

This commit is contained in:
M66B 2019-02-01 09:49:15 +00:00
parent 3d85e12a3e
commit 73a375213b
1 changed files with 0 additions and 25 deletions

View File

@ -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 // Reduce memory usage
((IMAPMessage) isub[j]).invalidateHeaders(); ((IMAPMessage) isub[j]).invalidateHeaders();
} }
if (state.running())
try {
Thread.sleep(100);
} catch (InterruptedException ignored) {
}
} }
// Delete not synchronized messages without uid // Delete not synchronized messages without uid
@ -2520,12 +2508,6 @@ public class ServiceSynchronize extends LifecycleService {
// Free memory // Free memory
((IMAPMessage) isub[j]).invalidateHeaders(); ((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() { void start() {
thread.start(); thread.start();
yield();
} }
void stop() { void stop() {