When ChannelException is thrown, remove listener from channel.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@948402
13f79535-47bb-0310-9956-
ffa450edef68
broadcast(MapMessage.MSG_START, true);
} catch (ChannelException x) {
log.warn("Unable to send map start message.");
+ // remove listener from channel
+ this.channel.removeChannelListener(this.rpcChannel);
+ this.channel.removeChannelListener(this);
+ this.channel.removeMembershipListener(this);
throw new RuntimeException("Unable to start replicated map.",x);
}
}