}
@Override
- public final void close() throws Exception {
- this.registration.close();
- this.registration = null;
+ public final void close() {
+ if (registration != null) {
+ this.registration.close();
+ this.registration = null;
+ }
- deleteDataInDS();
unregister();
}
*/
public void addSubscriber(final Channel subscriber) {
if (!subscriber.isActive()) {
- LOG.debug("Channel is not active between websocket server and subscriber {}" + subscriber.remoteAddress());
+ LOG.debug("Channel is not active between websocket server and subscriber {}", subscriber.remoteAddress());
}
final Event event = new Event(EventType.REGISTER);
event.setSubscriber(subscriber);