From: David ‘Bombe’ Roden Date: Mon, 17 Nov 2014 21:14:56 +0000 (+0100) Subject: Verify we shouldn't be running anymore after being triggered. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d1fad6e229a7f6cc709ae2eaefe25394151436e2;p=xudocci.git Verify we shouldn't be running anymore after being triggered. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 57971f9..cce13fe 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -384,6 +384,9 @@ public class Core extends AbstractExecutionThreadService { /* ignore. */ } } + if (!isRunning()) { + break; + } /* find channels that should be monitored but are not. */ for (Channel channel : channels) {