Set fix limit of 6 worker threads

This commit is contained in:
croneter 2018-11-24 09:52:25 +01:00
parent 45fb84e697
commit f32b5c1e71

View file

@ -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