mirror of
https://github.com/moparisthebest/k-9
synced 2025-01-09 12:48:02 -05:00
Remove double synchronization
This commit is contained in:
parent
23c49d834d
commit
f8ea923522
@ -1810,7 +1810,6 @@ public class MessagingController implements Runnable {
|
|||||||
synchronized (data) {
|
synchronized (data) {
|
||||||
MessageReference ref = localMessage.makeMessageReference();
|
MessageReference ref = localMessage.makeMessageReference();
|
||||||
if (data.removeMatchingMessage(context, ref)) {
|
if (data.removeMatchingMessage(context, ref)) {
|
||||||
synchronized (data) {
|
|
||||||
// if we remove a single message from the notification,
|
// if we remove a single message from the notification,
|
||||||
// maybe there is a stacked notification active for that one message
|
// maybe there is a stacked notification active for that one message
|
||||||
Integer childNotification = data.getStackedChildNotification(ref);
|
Integer childNotification = data.getStackedChildNotification(ref);
|
||||||
@ -1826,7 +1825,6 @@ public class MessagingController implements Runnable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
progress.incrementAndGet();
|
progress.incrementAndGet();
|
||||||
for (MessagingListener l : getListeners()) {
|
for (MessagingListener l : getListeners()) {
|
||||||
l.synchronizeMailboxProgress(account, folder, progress.get(), todo);
|
l.synchronizeMailboxProgress(account, folder, progress.get(), todo);
|
||||||
|
Loading…
Reference in New Issue
Block a user