don't pull changes if download rate is 0

This commit is contained in:
j 2019-01-13 12:51:38 +05:30
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