Only wait 1 second for connections to stop. When killing a stale

connection - if stop doesn't complete - it hangs the broker.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@606241 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-12-21 16:45:21 +00:00
parent 9f94b6c509
commit 34378e8ec1
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ public class TransportConnection implements Service, Connection, Task, CommandVi
doStop(); doStop();
stopLatch.countDown(); stopLatch.countDown();
} else { } else {
stopLatch.await(); stopLatch.await(1, TimeUnit.SECONDS);
} }
} }