From 48bab04f10e6f47a69e8fd73971202b38fcb6ead Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Wed, 21 Aug 2024 23:44:12 +1000 Subject: [PATCH] Fix checks for number of available spots in My Subscription thread pools --- resources/lib/youtube_plugin/youtube/client/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/youtube_plugin/youtube/client/youtube.py b/resources/lib/youtube_plugin/youtube/client/youtube.py index 2662dc272..0ac10ecd3 100644 --- a/resources/lib/youtube_plugin/youtube/client/youtube.py +++ b/resources/lib/youtube_plugin/youtube/client/youtube.py @@ -1726,9 +1726,9 @@ def _threaded_fetch(kwargs, if limit: if current_num >= limit: continue - if not available: + if available <= 0: threads['balance'].set() - elif not available: + elif available <= 0: continue thread = threading.Thread(