NO-JIRA: Small test client fix to close threads out faster.

This commit is contained in:
Timothy Bish 2016-09-15 16:28:16 -04:00
parent 4516c8df3f
commit a35d23dff7
1 changed files with 7 additions and 1 deletions

View File

@ -226,7 +226,13 @@ public class AmqpConnection extends AmqpAbstractResource<Connection> implements
} }
} }
serializer.shutdown(); serializer.shutdownNow();
try {
if (!serializer.awaitTermination(10, TimeUnit.SECONDS)) {
LOG.warn("Serializer didn't shutdown cleanly");
}
} catch (InterruptedException e) {
}
} }
} }
} }