Skip to content

Commit

Permalink
set DTHREADS as semaphore size
Browse files Browse the repository at this point in the history
  • Loading branch information
mammo0 committed Nov 2, 2020
1 parent e510097 commit 5522c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jellyfin_kodi/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def get_query_params(params, start, count):
jobs = {}

# semaphore to avoid fetching complete library to memory
thread_buffer = threading.Semaphore(LIMIT * DTHREADS)
thread_buffer = threading.Semaphore(DTHREADS)

# wrapper function for _get that uses a semaphore
def get_wrapper(params):
Expand Down

0 comments on commit 5522c93

Please sign in to comment.