Small improvement

This commit is contained in:
M66B 2022-10-21 11:29:58 +02:00
parent e0cbb50d6f
commit 7081acbb2b
1 changed files with 2 additions and 2 deletions

View File

@ -1871,7 +1871,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
@Override
public void messagesAdded(MessageCountEvent e) {
try {
wlMessage.acquire(WAKELOCK_OPERATION_MAX);
wlMessage.acquire(WAKELOCK_OPERATION_MAX * e.getMessages().length);
fetch(folder, ifolder, e.getMessages(), false, false, "added");
Thread.sleep(FETCH_YIELD_DURATION);
} catch (Throwable ex) {
@ -1889,7 +1889,7 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
@Override
public void messagesRemoved(MessageCountEvent e) {
try {
wlMessage.acquire(WAKELOCK_OPERATION_MAX);
wlMessage.acquire(WAKELOCK_OPERATION_MAX * e.getMessages().length);
fetch(folder, ifolder, e.getMessages(), false, true, "removed");
Thread.sleep(FETCH_YIELD_DURATION);
} catch (Throwable ex) {