From d1fad6e229a7f6cc709ae2eaefe25394151436e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 17 Nov 2014 22:14:56 +0100 Subject: [PATCH] Verify we shouldn't be running anymore after being triggered. --- src/main/java/net/pterodactylus/xdcc/core/Core.java | 3 +++ 1 file changed, 3 insertions(+) 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) { -- 2.7.4