mirror of https://github.com/apache/activemq.git
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@666893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6db9a37d2f
commit
4a052d20b1
|
@ -529,11 +529,17 @@ public class FailoverTransport implements CompositeTransport {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void reconnect() {
|
public void reconnect() {
|
||||||
LOG.debug("Waking up reconnect task");
|
synchronized (reconnectMutex) {
|
||||||
try {
|
if (started) {
|
||||||
reconnectTask.wakeup();
|
LOG.debug("Waking up reconnect task");
|
||||||
} catch (InterruptedException e) {
|
try {
|
||||||
Thread.currentThread().interrupt();
|
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.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue