mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 19:16:43 +00:00
Stopping workers should not clear their count (may fix #686)
This commit is contained in:
parent
1e3120b0b6
commit
b20aa0ccc9
@ -80,6 +80,7 @@ class UpdateState:
|
|||||||
t.join()
|
t.join()
|
||||||
|
|
||||||
self._worker_threads.clear()
|
self._worker_threads.clear()
|
||||||
|
self._workers = n
|
||||||
|
|
||||||
def setup_workers(self):
|
def setup_workers(self):
|
||||||
if self._worker_threads or not self._workers:
|
if self._worker_threads or not self._workers:
|
||||||
|
Loading…
Reference in New Issue
Block a user