mirror of
https://github.com/apache/activemq.git
synced 2025-02-27 20:59:06 +00:00
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();
|
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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user