mirror of https://github.com/apache/activemq.git
don't iterate forever in oneWay() if disposed (can cause some tests to hang in Connection close)
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378969 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b593aca5f8
commit
8b572cb6b8
|
@ -305,7 +305,7 @@ public class FailoverTransport implements CompositeTransport {
|
||||||
|
|
||||||
synchronized (reconnectMutex) {
|
synchronized (reconnectMutex) {
|
||||||
// Keep trying until the message is sent.
|
// Keep trying until the message is sent.
|
||||||
for (int i = 0;; i++) {
|
for (int i = 0;!disposed; i++) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
// Wait for transport to be connected.
|
// Wait for transport to be connected.
|
||||||
|
|
Loading…
Reference in New Issue