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 6cfe7201
...@@ -1357,10 +1357,10 @@ class Erebor: ...@@ -1357,10 +1357,10 @@ class Erebor:
except queue.Empty: except queue.Empty:
pass pass
else : else :
#try : try :
event.execute() event.execute()
#except Exception as e : except Exception as e :
# self.flushprint("{}".format(e)) self.flushprint("{}".format(e))
def add_to_queue(self, event) : def add_to_queue(self, event) :
self.message_queue.put(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