mirror of https://github.com/apache/activemq.git
add synchronize around add() - see http://www.nabble.com/Is-anyone-else-seeing-messages-stuck-on-a-queue--tf3027911.html#a8550623
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@499169 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1a448be825
commit
21391ceab4
|
@ -57,7 +57,7 @@ public class DurableTopicSubscription extends PrefetchSubscription {
|
||||||
synchronized public void gc() {
|
synchronized public void gc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void add(ConnectionContext context, Destination destination) throws Exception {
|
public synchronized void add(ConnectionContext context, Destination destination) throws Exception {
|
||||||
super.add(context, destination);
|
super.add(context, destination);
|
||||||
destinations.put(destination.getActiveMQDestination(), destination);
|
destinations.put(destination.getActiveMQDestination(), destination);
|
||||||
if( active || keepDurableSubsActive ) {
|
if( active || keepDurableSubsActive ) {
|
||||||
|
|
Loading…
Reference in New Issue