From 0d1d5890d8e48977d1f0129f943fe617413d677a Mon Sep 17 00:00:00 2001 From: Cheng Liangyu Date: Tue, 12 Nov 2024 16:29:40 +0800 Subject: [PATCH] fix: create workers at the end of __init__ --- requests_toolbelt/threaded/thread.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests_toolbelt/threaded/thread.py b/requests_toolbelt/threaded/thread.py index 542813c1..b66654b3 100644 --- a/requests_toolbelt/threaded/thread.py +++ b/requests_toolbelt/threaded/thread.py @@ -12,9 +12,9 @@ def __init__(self, initialized_session, job_queue, response_queue, exception_queue): self._session = initialized_session self._jobs = job_queue - self._create_worker() self._responses = response_queue self._exceptions = exception_queue + self._create_worker() def _create_worker(self): self._worker = threading.Thread(