git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@666893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2008-06-11 23:22:12 +00:00
parent 6db9a37d2f
commit 4a052d20b1
1 changed files with 11 additions and 5 deletions

View File

@ -529,11 +529,17 @@ public class FailoverTransport implements CompositeTransport {
}
public void reconnect() {
LOG.debug("Waking up reconnect task");
try {
reconnectTask.wakeup();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
synchronized (reconnectMutex) {
if (started) {
LOG.debug("Waking up reconnect task");
try {
reconnectTask.wakeup();
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
} else {
LOG.debug("Reconnect was triggered but transport is not started yet. Wait for start to connect the transport.");
}
}
}