From 6e83a549d38e758a3f8fb22a48d8ce1d77900ee0 Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 5 Nov 2018 14:03:07 +0100 Subject: [PATCH] Enable user setting for number of sync threads --- resources/lib/backgroundthread.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/backgroundthread.py b/resources/lib/backgroundthread.py index 3aa04a9b..ce8ee51e 100644 --- a/resources/lib/backgroundthread.py +++ b/resources/lib/backgroundthread.py @@ -201,7 +201,8 @@ class BackgroundWorker: class BackgroundThreader: - def __init__(self, name=None, worker_count=8): + def __init__(self, name=None, + worker_count=int(utils.settings('syncThreadNumber'))): self.name = name self._queue = MutablePriorityQueue() self._abort = False