1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Avoid dead threads in treaded polling

This commit is contained in:
Badiboy
2020-12-24 23:55:12 +03:00
parent 2534dc5925
commit c4e624d999
2 changed files with 11 additions and 9 deletions

View File

@ -75,7 +75,6 @@ class WorkerThread(threading.Thread):
logger.debug(type(e).__name__ + " occurred, args=" + str(e.args) + "\n" + traceback.format_exc())
self.exception_info = e
self.exception_event.set()
if self.exception_callback:
self.exception_callback(self, self.exception_info)
self.continue_event.wait()