Update IRCBot except queue.Empty
comment
This commit is contained in:
parent
4bf5c4783b
commit
7060a0ac67
1 changed files with 1 additions and 4 deletions
|
@ -275,13 +275,11 @@ class Bot(object):
|
|||
self.log.warn("No servers, exiting")
|
||||
break
|
||||
|
||||
|
||||
try:
|
||||
item = self._event_queue.get(block=True,
|
||||
timeout=self.get_poll_timeout())
|
||||
except queue.Empty:
|
||||
# caused by timeout being hit. loop back round because a _check
|
||||
# call is due
|
||||
# caused by timeout being hit.
|
||||
continue
|
||||
finally:
|
||||
self._check()
|
||||
|
@ -345,7 +343,6 @@ class Bot(object):
|
|||
while self.running:
|
||||
events = self._read_poll.poll()
|
||||
|
||||
|
||||
for fd, event in events:
|
||||
if fd == self._rtrigger_server.fileno():
|
||||
# throw away data from trigger socket
|
||||
|
|
Loading…
Reference in a new issue