only pull changes if peered

This commit is contained in:
j 2015-12-01 14:54:10 +01:00
parent 57aaecd1db
commit adcb6bca0a

View file

@ -273,7 +273,7 @@ class Node(Thread):
})
def pullChanges(self):
if not self.online:
if not self.online or not self.user.peered:
return True
last = Changelog.query.filter_by(user_id=self.user_id).order_by('-revision').first()
from_revision = last.revision + 1 if last else 0