From b20aa0ccc91b3d767c26702f3611c44772d87f5a Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 15 Mar 2018 10:29:12 +0100 Subject: [PATCH] Stopping workers should not clear their count (may fix #686) --- telethon/update_state.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/update_state.py b/telethon/update_state.py index 171e9546..9f26e3a4 100644 --- a/telethon/update_state.py +++ b/telethon/update_state.py @@ -80,6 +80,7 @@ class UpdateState: t.join() self._worker_threads.clear() + self._workers = n def setup_workers(self): if self._worker_threads or not self._workers: