Don’t log disconnects from networks we weren’t really connected to.
[xudocci.git] / 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)) {