This commit is contained in:
Clebert Suconic 2020-10-22 12:44:42 -04:00
commit eea95e4a5a
2 changed files with 7 additions and 3 deletions

View File

@ -643,6 +643,10 @@ public final class ChannelImpl implements Channel {
unlock();
}
closed = true;
// unblock any blocked call:
// don't move this one before closed = true, because
// unblocked calls need to check if (closed) to "gracefully" shutdown.
returnBlocking();
}
@Override

View File

@ -192,9 +192,9 @@ public class BackupManager implements ActiveMQComponent {
private TransportConfiguration connector;
protected long retryInterval;
private ClusterManager clusterManager;
private boolean stopping = false;
private boolean announcingBackup;
private boolean backupAnnounced = false;
private volatile boolean stopping = false;
private volatile boolean announcingBackup;
private volatile boolean backupAnnounced = false;
@Override
public String toString() {