don't pull changes while import is running
This commit is contained in:
parent
cded8b586a
commit
ea7826d398
1 changed files with 2 additions and 0 deletions
|
@ -262,6 +262,8 @@ class Node(Thread):
|
|||
})
|
||||
|
||||
def pullChanges(self):
|
||||
if state.activity and state.activity.get('activity') == 'import':
|
||||
return
|
||||
with db.session():
|
||||
u = user.models.User.get_or_create(self.user_id)
|
||||
if not self.online or not u.peered:
|
||||
|
|
Loading…
Reference in a new issue