Skip to content

Commit

Permalink
fix: create workers at the end of __init__
Browse files Browse the repository at this point in the history
  • Loading branch information
clyfish committed Nov 12, 2024
1 parent c73ad2c commit 0d1d589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests_toolbelt/threaded/thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0d1d589

Please sign in to comment.