Remove channel we’re kicked from from the correct collection.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 22 Dec 2014 16:56:32 +0000 (17:56 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 22 Dec 2014 16:57:59 +0000 (17:57 +0100)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index ed80db9..30da4a8 100644 (file)
@@ -679,7 +679,7 @@ public class Core extends AbstractExecutionThreadService {
 
                                extraChannels.remove(channel.get());
                        } else {
-                               channels.remove(channel.get());
+                               joinedChannels.remove(channel.get());
                        }
                        eventBus.post(new GenericMessage(format(
                                        "Kicked from %s by %s: %s",