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')
|
||||
|
||||
def _pull(self):
|
||||
if not state.sync_enabled or settings.preferences.get('downloadRate') == 0:
|
||||
return
|
||||
if state.activity and state.activity.get('activity') == 'import':
|
||||
return
|
||||
self._pulling = True
|
||||
|
|
|
@ -8,6 +8,7 @@ node = False
|
|||
online = False
|
||||
tasks = False
|
||||
downloads = False
|
||||
sync_enabled = True
|
||||
tor = False
|
||||
update = False
|
||||
shutdown = False
|
||||
|
|
Loading…
Reference in a new issue