diff options
| author | 2019-06-17 14:07:06 +0100 | |
|---|---|---|
| committer | 2019-06-17 14:07:06 +0100 | |
| commit | 9121a868a8166207ad2d659744a20b3f39fe35ef (patch) | |
| tree | a494ad9ad1fe96eb82d7c6f8ad645dd723842f8b /src | |
| parent | Tell servers objects when they are the result of a reconnection (diff) | |
| signature | ||
Make sure we exit event loop when there's no servers left
Diffstat (limited to 'src')
| -rw-r--r-- | src/IRCBot.py | 2 |
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) |
