From 179cf14bd8a5bde0d7892d470a3756cdb5208134 Mon Sep 17 00:00:00 2001 From: Ales Dokshanin <3935698+alesdokshanin@users.noreply.github.com> Date: Fri, 23 Aug 2019 21:54:07 +0300 Subject: [PATCH] #1410 Call task_done() on update queue after update processing finished (#1428) --- AUTHORS.rst | 1 + telegram/ext/dispatcher.py | 1 + 2 files changed, 2 insertions(+) diff --git a/AUTHORS.rst b/AUTHORS.rst index 244e2d371..ec02c411f 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -16,6 +16,7 @@ Contributors The following wonderful people contributed directly or indirectly to this project: - `Alateas `_ +- `Ales Dokshanin `_ - `Ambro17 `_ - `Anton Tagunov `_ - `Avanatiker `_ diff --git a/telegram/ext/dispatcher.py b/telegram/ext/dispatcher.py index 860896fa7..8fbfbfc97 100644 --- a/telegram/ext/dispatcher.py +++ b/telegram/ext/dispatcher.py @@ -274,6 +274,7 @@ class Dispatcher(object): self.logger.debug('Processing Update: %s' % update) self.process_update(update) + self.update_queue.task_done() self.running = False self.logger.debug('Dispatcher thread stopped')