Commit 81872195 authored by Denis Bilenko's avatar Denis Bilenko

core.pyx: add an assert to event's callback handler

parent 3195b00d
......@@ -108,6 +108,7 @@ EV_PERSIST = 0x10
cdef void __event_handler(int fd, short evtype, void *arg) with gil:
cdef event ev = <event>arg
try:
assert ev.fd == fd, (ev.fd, fd)
ev._callback(ev, evtype)
except:
traceback.print_exc()
......
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