properly unsubscribe from channels not patterns on unsub all

This commit is contained in:
Costin Leau
2013-02-07 21:17:50 +02:00
parent 272c3f96c7
commit cad7878fa1

View File

@@ -193,7 +193,7 @@ public abstract class AbstractSubscription implements Subscription {
// shortcut for unsubscribing all channels
if (ObjectUtils.isEmpty(chans)) {
if (!this.channels.isEmpty()) {
chans = getPatterns().toArray(new byte[this.channels.size()][]);
chans = getChannels().toArray(new byte[this.channels.size()][]);
synchronized (this.channels) {
this.channels.clear();
}