Merge pull request #1893 from artyl/master

RuntimeError("cannot join current thread")
This commit is contained in:
Badiboy 2023-01-31 20:52:59 +03:00 committed by GitHub
commit d99f48f975
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -154,7 +154,8 @@ class ThreadPool:
for worker in self.workers:
worker.stop()
for worker in self.workers:
worker.join()
if worker != threading.current_thread():
worker.join()
class AsyncTask: