From d1c2e7a834489874e71ed7999e8859d67d39dd30 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 2 Nov 2018 17:03:27 +0000 Subject: [PATCH] issue #406: call Poller.close() during broker shutdown. --- mitogen/core.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mitogen/core.py b/mitogen/core.py index 9dec1eab..df4e54eb 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -2491,6 +2491,8 @@ class Broker(object): LOG.error('_broker_main() force disconnecting %r', side) side.stream.on_disconnect(self) + self.poller.close() + def _broker_main(self): """ Handle events until :meth:`shutdown`. On shutdown, invoke