mirror of https://github.com/apache/activemq.git
fix for https://issues.apache.org/activemq/browse/AMQ-2069 - thread deadlock in endpoint worker
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@797052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a039a0e997
commit
2350d8b764
|
@ -247,15 +247,15 @@ public class ActiveMQEndpointWorker {
|
|||
public void stop() throws InterruptedException {
|
||||
synchronized (shutdownMutex) {
|
||||
if (!running)
|
||||
return;
|
||||
running = false;
|
||||
return;
|
||||
running = false;
|
||||
LOG.info("Stopping");
|
||||
// wake up pausing reconnect attempt
|
||||
shutdownMutex.notifyAll();
|
||||
serverSessionPool.close();
|
||||
serverSessionPool.close();
|
||||
}
|
||||
disconnect();
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isRunning() {
|
||||
return running;
|
||||
|
|
Loading…
Reference in New Issue