mirror of https://github.com/apache/activemq.git
fix AMQ1936Test,AMQ2021Test timeouts - hitting unnecessary 1s wait on shutdown command completion
This commit is contained in:
parent
b60bfbbeb4
commit
db084ef776
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue