Don’t log disconnects from networks we weren’t really connected to.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 17 Oct 2014 07:58:45 +0000 (09:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 17 Oct 2014 07:58:45 +0000 (09:58 +0200)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index 68628d7..c0a2288 100644 (file)
@@ -435,6 +435,9 @@ public class Core extends AbstractExecutionThreadService {
                if (!network.isPresent()) {
                        return;
                }
+               if (!connection.established()) {
+                       return;
+               }
 
                /* find all channels that need to be removed. */
                for (Collection<Channel> channels : ImmutableList.of(joinedChannels, extraChannels)) {