mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-22 15:17:00 +01:00
make sure to remove the stopped dispatcher threads from ASYNC_THREADS
This commit is contained in:
parent
881d1d0e25
commit
a30411c9fa
1 changed files with 1 additions and 0 deletions
|
@ -382,6 +382,7 @@ class Updater(object):
|
||||||
for i, thr in enumerate(threads):
|
for i, thr in enumerate(threads):
|
||||||
self.logger.debug('Waiting for async thread {0}/{1} to end'.format(i + 1, total))
|
self.logger.debug('Waiting for async thread {0}/{1} to end'.format(i + 1, total))
|
||||||
thr.join()
|
thr.join()
|
||||||
|
dispatcher.ASYNC_THREADS.remove(thr)
|
||||||
self.logger.debug('async thread {0}/{1} has ended'.format(i + 1, total))
|
self.logger.debug('async thread {0}/{1} has ended'.format(i + 1, total))
|
||||||
|
|
||||||
def _join_threads(self):
|
def _join_threads(self):
|
||||||
|
|
Loading…
Reference in a new issue