don't pull changes if download rate is 0

This commit is contained in:
j 2019-01-13 12:51:38 +05:30
parent 616a06270d
commit c979940706
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -8,6 +8,7 @@ node = False
online = False
tasks = False
downloads = False
sync_enabled = True
tor = False
update = False
shutdown = False