fix AMQ1936Test,AMQ2021Test timeouts - hitting unnecessary 1s wait on shutdown command completion

This commit is contained in:
gtully 2015-02-13 12:01:50 +00:00
parent b60bfbbeb4
commit db084ef776
1 changed files with 2 additions and 3 deletions

View File

@ -183,11 +183,10 @@ public class VMTransport implements Transport, Task {
mq.clear();
}
// Allow pending deliveries to finish up, but don't wait
// forever in case of an stalled onCommand.
// don't wait for completion
if (tr != null) {
try {
tr.shutdown(TimeUnit.SECONDS.toMillis(1));
tr.shutdown(1);
} catch(Exception e) {
}
tr = null;