added missing synchronize when pushing messages from mam backlog
This commit is contained in:
parent
fb97f9d18f
commit
c3e2d2cfba
|
@ -115,9 +115,11 @@ public class NotificationService {
|
||||||
|
|
||||||
public void pushFromBacklog(final Message message) {
|
public void pushFromBacklog(final Message message) {
|
||||||
if (notify(message)) {
|
if (notify(message)) {
|
||||||
|
synchronized (notifications) {
|
||||||
pushToStack(message);
|
pushToStack(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void finishBacklog(boolean notify) {
|
public void finishBacklog(boolean notify) {
|
||||||
synchronized (notifications) {
|
synchronized (notifications) {
|
||||||
|
|
Loading…
Reference in a new issue