don't pull changes if download rate is 0
This commit is contained in:
parent
616a06270d
commit
c979940706
2 changed files with 3 additions and 0 deletions
|
@ -542,6 +542,8 @@ class Nodes(Thread):
|
||||||
self.queue('pull')
|
self.queue('pull')
|
||||||
|
|
||||||
def _pull(self):
|
def _pull(self):
|
||||||
|
if not state.sync_enabled or settings.preferences.get('downloadRate') == 0:
|
||||||
|
return
|
||||||
if state.activity and state.activity.get('activity') == 'import':
|
if state.activity and state.activity.get('activity') == 'import':
|
||||||
return
|
return
|
||||||
self._pulling = True
|
self._pulling = True
|
||||||
|
|
|
@ -8,6 +8,7 @@ node = False
|
||||||
online = False
|
online = False
|
||||||
tasks = False
|
tasks = False
|
||||||
downloads = False
|
downloads = False
|
||||||
|
sync_enabled = True
|
||||||
tor = False
|
tor = False
|
||||||
update = False
|
update = False
|
||||||
shutdown = False
|
shutdown = False
|
||||||
|
|
Loading…
Reference in a new issue