Don't exit when there are no connected servers

closes #175
This commit is contained in:
jesopo 2019-10-11 13:06:52 +01:00
parent a5eca53f0a
commit b7b045eadb

View file

@ -276,11 +276,6 @@ class Bot(object):
def _event_loop(self):
while self.running or not self._event_queue.empty():
if not self.servers and self._event_queue.empty():
self._kill()
self.log.warn("No servers, exiting")
break
try:
item = self._event_queue.get(block=True,
timeout=self.get_poll_timeout())