Verify we shouldn't be running anymore after being triggered.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 17 Nov 2014 21:14:56 +0000 (22:14 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Mon, 17 Nov 2014 21:14:56 +0000 (22:14 +0100)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index 57971f9..cce13fe 100644 (file)
@@ -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) {