Compare correct objects.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Apr 2013 19:27:14 +0000 (21:27 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 8 Apr 2013 19:27:14 +0000 (21:27 +0200)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index d5a45b1..00e31c6 100644 (file)
@@ -144,7 +144,7 @@ public class Core extends AbstractIdleService {
 
                /* join all channels on this network. */
                for (Channel channel : channels) {
-                       if (channel.network().equals(network)) {
+                       if (channel.network().equals(network.get())) {
                                try {
                                        connectionEstablished.connection().joinChannel(channel.name());
                                } catch (IOException ioe1) {