Commit 243909ce authored by dieter's avatar dieter

handle `MTAcceptor` specially

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