Make sure we exit event loop when there's no servers left
This commit is contained in:
parent
dbe0b1f43b
commit
9121a868a8
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue