only pull changes if peered
This commit is contained in:
parent
57aaecd1db
commit
adcb6bca0a
1 changed files with 1 additions and 1 deletions
|
@ -273,7 +273,7 @@ class Node(Thread):
|
||||||
})
|
})
|
||||||
|
|
||||||
def pullChanges(self):
|
def pullChanges(self):
|
||||||
if not self.online:
|
if not self.online or not self.user.peered:
|
||||||
return True
|
return True
|
||||||
last = Changelog.query.filter_by(user_id=self.user_id).order_by('-revision').first()
|
last = Changelog.query.filter_by(user_id=self.user_id).order_by('-revision').first()
|
||||||
from_revision = last.revision + 1 if last else 0
|
from_revision = last.revision + 1 if last else 0
|
||||||
|
|
Loading…
Reference in a new issue