From f32b5c1e710cb28770658af4da102284a194f7eb Mon Sep 17 00:00:00 2001 From: croneter Date: Sat, 24 Nov 2018 09:52:25 +0100 Subject: [PATCH] Set fix limit of 6 worker threads --- resources/lib/backgroundthread.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/resources/lib/backgroundthread.py b/resources/lib/backgroundthread.py index 07f67ec7..0fe9ae87 100644 --- a/resources/lib/backgroundthread.py +++ b/resources/lib/backgroundthread.py @@ -259,8 +259,7 @@ class NonstoppingBackgroundWorker(BackgroundWorker): class BackgroundThreader: - def __init__(self, name=None, worker=BackgroundWorker, - worker_count=int(utils.settings('syncThreadNumber'))): + def __init__(self, name=None, worker=BackgroundWorker, worker_count=6): self.name = name self._queue = MutablePriorityQueue() self._abort = False