Skip to content

Commit a30411c

Browse files
committed
make sure to remove the stopped dispatcher threads from ASYNC_THREADS
1 parent 881d1d0 commit a30411c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

telegram/ext/updater.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ def _join_async_threads(self):
382382
for i, thr in enumerate(threads):
383383
self.logger.debug('Waiting for async thread {0}/{1} to end'.format(i + 1, total))
384384
thr.join()
385+
dispatcher.ASYNC_THREADS.remove(thr)
385386
self.logger.debug('async thread {0}/{1} has ended'.format(i + 1, total))
386387

387388
def _join_threads(self):

0 commit comments

Comments
 (0)