don't pull changes while import is running

This commit is contained in:
j 2016-01-23 18:36:16 +05:30
parent cded8b586a
commit ea7826d398

View file

@ -262,6 +262,8 @@ class Node(Thread):
}) })
def pullChanges(self): def pullChanges(self):
if state.activity and state.activity.get('activity') == 'import':
return
with db.session(): with db.session():
u = user.models.User.get_or_create(self.user_id) u = user.models.User.get_or_create(self.user_id)
if not self.online or not u.peered: if not self.online or not u.peered: