mirror of https://github.com/apache/activemq.git
Added more synchronization
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@603348 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
27c87d20f3
commit
a5a6a2a5d1
|
@ -34,7 +34,7 @@ class MemoryTopicSub {
|
|||
private Map<MessageId, Message> map = new LinkedHashMap<MessageId, Message>();
|
||||
private MessageId lastBatch;
|
||||
|
||||
void addMessage(MessageId id, Message message) {
|
||||
synchronized void addMessage(MessageId id, Message message) {
|
||||
map.put(id, message);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue