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

Merge pull request #1230 from Badiboy/master

Fix worker_pool issue
This commit is contained in:
Badiboy 2021-07-13 22:16:48 +03:00 committed by GitHub
commit b45db584df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -740,7 +740,7 @@ class TeleBot:
def stop_bot(self):
self.stop_polling()
if self.worker_pool:
if self.threaded and self.worker_pool:
self.worker_pool.close()
def set_update_listener(self, listener):