Enable user setting for number of sync threads
This commit is contained in:
parent
8205e19668
commit
6e83a549d3
1 changed files with 2 additions and 1 deletions
|
@ -201,7 +201,8 @@ class BackgroundWorker:
|
||||||
|
|
||||||
|
|
||||||
class BackgroundThreader:
|
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.name = name
|
||||||
self._queue = MutablePriorityQueue()
|
self._queue = MutablePriorityQueue()
|
||||||
self._abort = False
|
self._abort = False
|
||||||
|
|
Loading…
Reference in a new issue