Remove correct extra channel after being kicked.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 22 Dec 2014 16:56:18 +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 cce13fe..ed80db9 100644 (file)
@@ -677,7 +677,7 @@ public class Core extends AbstractExecutionThreadService {
                                        return;
                                }
 
-                               extraChannels.remove(channel);
+                               extraChannels.remove(channel.get());
                        } else {
                                channels.remove(channel.get());
                        }