Commit 896e14b6 authored by lavocat's avatar lavocat
Browse files

Protect event loop. Close #7

If anything bad append during the reception of an event, do not crash
the node. This allow a node still receiving kill signals from its
parent.
parent 6cfe7201
......@@ -1357,10 +1357,10 @@ class Erebor:
except queue.Empty:
pass
else :
#try :
event.execute()
#except Exception as e :
# self.flushprint("{}".format(e))
try :
event.execute()
except Exception as e :
self.flushprint("{}".format(e))
def add_to_queue(self, event) :
self.message_queue.put(event)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment