cleanly shut down
This commit is contained in:
parent
9ecf102c01
commit
4b790722ae
6 changed files with 37 additions and 14 deletions
|
|
@ -67,7 +67,7 @@ class Node(Thread):
|
|||
def join(self):
|
||||
self._running = False
|
||||
self.ping()
|
||||
return Thread.join(self)
|
||||
#return Thread.join(self)
|
||||
|
||||
def ping(self):
|
||||
self._q.put('')
|
||||
|
|
@ -409,4 +409,5 @@ class Nodes(Thread):
|
|||
self._q.put(None)
|
||||
for node in self._nodes.values():
|
||||
node.join()
|
||||
self._local.join()
|
||||
return Thread.join(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue