Commit 243909ce authored by dieter's avatar dieter

handle `MTAcceptor` specially

parent 5f30fa60
......@@ -259,8 +259,10 @@ class ZEOServer(object):
if self.server is not None:
self.server.close()
if getattr(self.options, "testing_exit_immediately", False):
acceptor = self.server.acceptor
if hasattr(acceptor, "event_loop"):
# usually, this happens automatically - but not for testing
self.server.acceptor.event_loop.close()
acceptor.event_loop.close()
def handle_sigterm(self):
log("terminated by SIGTERM")
......
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