mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-19 05:38:31 +00:00
Removed yields on main thread
This commit is contained in:
parent
3d85e12a3e
commit
73a375213b
1 changed files with 0 additions and 25 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue