don't wait for ever for worker to stop

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

View File

@ -104,7 +104,7 @@ public class ReconnectTest extends TestCase {
try {
if (!stopped.await(5, TimeUnit.SECONDS)) {
connection.close();
stopped.await();
stopped.await(5, TimeUnit.SECONDS);
} else {
connection.close();
}