mirror of https://github.com/apache/activemq.git
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:
parent
34378e8ec1
commit
8179df80f1
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue