Commit e9032fe6 authored by Mark Peek's avatar Mark Peek

Fix a Simultaneous exception when test_reenter.py is run

The test_reenter.py test starts and stops the event loop several
times. The queue_poller is a singleton only created once and, on
the Mac (and probably on FreeBSD) the self.event_map needs to be
reinitialized. While not seen on Linux the same fix is made for
consistency.
parent c50b56fe
......@@ -249,6 +249,7 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
if self.ep_fd != -1:
unistd.close (self.ep_fd)
self.ep_fd = -1
self.event_map = {}
IF COMPILE_LINUX_AIO:
aio_teardown()
......
......@@ -298,6 +298,7 @@ cdef public class queue_poller [ object queue_poller_object, type queue_poller_t
if self.kq_fd != -1:
unistd.close (self.kq_fd)
self.kq_fd = -1
self.event_map = {}
cdef object set_wait_for (self, kevent_key kk, unsigned int fflags):
cdef kevent * k
......
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