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

View File

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