aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-17 14:07:06 +0100
committerGravatar jesopo2019-06-17 14:07:06 +0100
commit9121a868a8166207ad2d659744a20b3f39fe35ef (patch)
treea494ad9ad1fe96eb82d7c6f8ad645dd723842f8b
parentTell servers objects when they are the result of a reconnection (diff)
signature
Make sure we exit event loop when there's no servers left
-rw-r--r--src/IRCBot.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py
index 52fc8d71..637a8352 100644
--- a/src/IRCBot.py
+++ b/src/IRCBot.py
@@ -271,6 +271,8 @@ class Bot(object):
while self.running or not self._event_queue.empty():
if not self.servers:
self._kill()
+ self.log.warn("No servers, exiting")
+ continue
kill = False
item = self._event_queue.get(block=True, timeout=None)