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:
Bosanac Dejan 2009-07-23 12:58:53 +00:00
parent a039a0e997
commit 2350d8b764
1 changed files with 4 additions and 4 deletions

View File

@ -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;