diff options
| author | 2019-09-30 11:52:07 +0100 | |
|---|---|---|
| committer | 2019-09-30 11:52:07 +0100 | |
| commit | 8480309db2f28dace88586699c363ccd82f0f1a2 (patch) | |
| tree | 0e545d870c2548e56652b370a38365d4eec73183 /src/IRCBot.py | |
| parent | default sasl-hard-fail to false but add a bot-wide setting for it (diff) | |
| signature | ||
only _kill() when there's no servers *and* the event queue is empty
this is so that bitbot doesn't exit when you !reconnect but only have 1 server
Diffstat (limited to 'src/IRCBot.py')
| -rw-r--r-- | src/IRCBot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py index 526484b8..960755f5 100644 --- a/src/IRCBot.py +++ b/src/IRCBot.py @@ -273,7 +273,7 @@ class Bot(object): def _event_loop(self): while self.running or not self._event_queue.empty(): - if not self.servers: + if not self.servers and self._event_queue.empty(): self._kill() self.log.warn("No servers, exiting") break |
