fix nodes shutdown

This commit is contained in:
j 2016-01-25 23:02:47 +05:30
parent afbb4e638f
commit 7e40c2667b

View file

@ -479,9 +479,10 @@ class Nodes(Thread):
return return
self._pulling = True self._pulling = True
for node in list(self._nodes.values()): for node in list(self._nodes.values()):
node.online = node.can_connect() if self._running:
if node.online: node.online = node.can_connect()
node.pullChanges() if node.online:
node.pullChanges()
self._pulling = False self._pulling = False
def run(self): def run(self):