Revert "Simplification"

This reverts commit ac41616191.
This commit is contained in:
M66B 2021-02-25 10:12:28 +01:00
parent ac41616191
commit 0cd747f8ff
1 changed files with 1 additions and 3 deletions

View File

@ -1331,13 +1331,11 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
public void run() { public void run() {
try { try {
Log.i(folder.name + " start idle"); Log.i(folder.name + " start idle");
while (state.isRunning() && state.isRecoverable()) { while (ifolder.isOpen() && state.isRunning() && state.isRecoverable()) {
Log.i(folder.name + " do idle"); Log.i(folder.name + " do idle");
ifolder.idle(false); ifolder.idle(false);
state.activity(); state.activity();
} }
if (BuildConfig.DEBUG)
EntityLog.log(ServiceSynchronize.this, folder.name + " end IDLE");
} catch (Throwable ex) { } catch (Throwable ex) {
Log.e(folder.name, ex); Log.e(folder.name, ex);
EntityLog.log( EntityLog.log(