Fix minor issue in ReactorMessageChannel

master
Rossen Stoyanchev 11 years ago
parent 55a212d4a0
commit f7f66f2e5c
  1. 2
      spring-websocket/src/main/java/org/springframework/web/messaging/support/ReactorMessageChannel.java

@ -104,7 +104,7 @@ public class ReactorMessageChannel implements SubscribableChannel<Message<?>, Me
logger.trace("Channel " + getName() + ", removing subscription for handler " + handler); logger.trace("Channel " + getName() + ", removing subscription for handler " + handler);
} }
Registration<?> registration = this.registrations.get(handler); Registration<?> registration = this.registrations.remove(handler);
if (registration == null) { if (registration == null) {
if (logger.isTraceEnabled()) { if (logger.isTraceEnabled()) {
logger.trace("Channel " + getName() + ", no subscription for handler " + handler); logger.trace("Channel " + getName() + ", no subscription for handler " + handler);

Loading…
Cancel
Save