From: David ‘Bombe’ Roden Date: Fri, 17 Oct 2014 07:58:45 +0000 (+0200) Subject: Don’t log disconnects from networks we weren’t really connected to. X-Git-Url: https://git.pterodactylus.net/?p=xudocci.git;a=commitdiff_plain;h=8ff1daafb20619a146d0e59c285478cce209faf5 Don’t log disconnects from networks we weren’t really connected to. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 68628d7..c0a2288 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -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 channels : ImmutableList.of(joinedChannels, extraChannels)) {