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
self._pulling = True
for node in list(self._nodes.values()):
node.online = node.can_connect()
if node.online:
node.pullChanges()
if self._running:
node.online = node.can_connect()
if node.online:
node.pullChanges()
self._pulling = False
def run(self):