mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Merge pull request #1893 from artyl/master
RuntimeError("cannot join current thread")
This commit is contained in:
commit
d99f48f975
@ -154,6 +154,7 @@ class ThreadPool:
|
||||
for worker in self.workers:
|
||||
worker.stop()
|
||||
for worker in self.workers:
|
||||
if worker != threading.current_thread():
|
||||
worker.join()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user