X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fcore%2FCore.java;fp=src%2Fmain%2Fjava%2Fnet%2Fpterodactylus%2Fxdcc%2Fcore%2FCore.java;h=649db75114993bbd6d2896db7c311e2f2e99a3fe;hb=82dbd8dd4022906970f8851080df22c77d0111af;hp=24727d9c390c9814c672bb263ef61fca64e6f3b5;hpb=ebf301a563acaacf0bccbc437ca5316887ad76ca;p=xudocci.git diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 24727d9..649db75 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -508,10 +508,13 @@ public class Core extends AbstractExecutionThreadService { * The connection to remove */ private void removeConnection(Connection connection) { + logger.debug(String.format("Removing Connection %s...", connection)); Optional network = getNetwork(connection); if (!network.isPresent()) { + logger.debug(String.format("Connection %s did not belong to any network.", connection)); return; } + logger.debug(String.format("Connection %s belongs to network %s.", connection, network.get())); networkConnections.remove(network.get()); /* find all channels that need to be removed. */ @@ -521,7 +524,7 @@ public class Core extends AbstractExecutionThreadService { if (!joinedChannel.network().equals(network.get())) { continue; } - + logger.debug(String.format("Channel %s will be removed.", joinedChannel)); channelIterator.remove(); } }