diff options
| author | 2019-06-23 20:50:40 +0100 | |
|---|---|---|
| committer | 2019-06-23 20:50:40 +0100 | |
| commit | ef0b3ec64c51572212656fc80f3bf893187f62bd (patch) | |
| tree | 30d2413019837132b146455269d13b06751b20f9 /src/IRCBot.py | |
| parent | move 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.py | 3 |
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: |
