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:
Robert Davies 2007-12-11 20:19:46 +00:00
parent 27c87d20f3
commit a5a6a2a5d1
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ class MemoryTopicSub {
private Map<MessageId, Message> map = new LinkedHashMap<MessageId, Message>(); private Map<MessageId, Message> map = new LinkedHashMap<MessageId, Message>();
private MessageId lastBatch; private MessageId lastBatch;
void addMessage(MessageId id, Message message) { synchronized void addMessage(MessageId id, Message message) {
map.put(id, message); map.put(id, message);
} }