aboutsummaryrefslogtreecommitdiff
path: root/src/IRCBot.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-06-23 20:50:40 +0100
committerGravatar jesopo2019-06-23 20:50:40 +0100
commitef0b3ec64c51572212656fc80f3bf893187f62bd (patch)
tree30d2413019837132b146455269d13b06751b20f9 /src/IRCBot.py
parentmove get_poll_timeout() to event loop now that it is the one calling _check (diff)
signature
move _check() after timeouted queue.get() so deadlines are met accurately
Diffstat (limited to 'src/IRCBot.py')
-rw-r--r--src/IRCBot.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/IRCBot.py b/src/IRCBot.py
index 8b3548e5..d3948a58 100644
--- a/src/IRCBot.py
+++ b/src/IRCBot.py
@@ -275,7 +275,6 @@ class Bot(object):
self.log.warn("No servers, exiting")
break
- self._check()
try:
item = self._event_queue.get(block=True,
@@ -284,6 +283,8 @@ class Bot(object):
# caused by timeout being hit. loop back round because a _check
# call is due
continue
+ finally:
+ self._check()
if item.type == TriggerEventType.Action:
try: