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:
Robert Davies 2006-02-19 22:15:43 +00:00
parent b593aca5f8
commit 8b572cb6b8
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ public class FailoverTransport implements CompositeTransport {
synchronized (reconnectMutex) {
// Keep trying until the message is sent.
for (int i = 0;; i++) {
for (int i = 0;!disposed; i++) {
try {
// Wait for transport to be connected.