added missing synchronize when pushing messages from mam backlog

This commit is contained in:
Daniel Gultsch 2016-01-04 20:14:29 +01:00
parent fb97f9d18f
commit c3e2d2cfba
1 changed files with 3 additions and 1 deletions

View File

@ -115,9 +115,11 @@ public class NotificationService {
public void pushFromBacklog(final Message message) {
if (notify(message)) {
synchronized (notifications) {
pushToStack(message);
}
}
}
public void finishBacklog(boolean notify) {
synchronized (notifications) {