From 5c325d9b238dd578b3989c104bfb57cde46875d0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 17 Jun 2019 16:19:20 +0100 Subject: [PATCH] 'break' instead of 'continue' so that things in the event queue get discarded --- src/IRCBot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/IRCBot.py b/src/IRCBot.py index 637a8352..c7d37b06 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -272,7 +272,7 @@ class Bot(object): if not self.servers: self._kill() self.log.warn("No servers, exiting") - continue + break kill = False item = self._event_queue.get(block=True, timeout=None)