parent
a5eca53f0a
commit
b7b045eadb
1 changed files with 0 additions and 5 deletions
|
@ -276,11 +276,6 @@ class Bot(object):
|
||||||
|
|
||||||
def _event_loop(self):
|
def _event_loop(self):
|
||||||
while self.running or not self._event_queue.empty():
|
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:
|
try:
|
||||||
item = self._event_queue.get(block=True,
|
item = self._event_queue.get(block=True,
|
||||||
timeout=self.get_poll_timeout())
|
timeout=self.get_poll_timeout())
|
||||||
|
|
Loading…
Reference in a new issue