mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 09:42:17 -05:00
synchronize around adding query to query map
This commit is contained in:
parent
a5d9932b08
commit
185dac6953
@ -75,7 +75,9 @@ public class MessageArchiveService implements OnAdvancedStreamFeaturesLoaded {
|
|||||||
query = new Query(account, startCatchup, endCatchup);
|
query = new Query(account, startCatchup, endCatchup);
|
||||||
query.reference = reference;
|
query.reference = reference;
|
||||||
}
|
}
|
||||||
|
synchronized (this.queries) {
|
||||||
this.queries.add(query);
|
this.queries.add(query);
|
||||||
|
}
|
||||||
this.execute(query);
|
this.execute(query);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user