issue #406: unix: fix ordering of stop_receive/close.

This commit is contained in:
David Wilson 2018-11-04 11:52:02 +00:00
parent 661e274556
commit 586c6aca9a
1 changed files with 1 additions and 1 deletions

View File

@ -82,9 +82,9 @@ class Listener(mitogen.core.BasicStream):
router.broker.start_receive(self)
def on_shutdown(self, broker):
broker.stop_receive(self)
self._sock.close()
self.receive_side.closed = True
broker.stop_receive(self)
def _accept_client(self, sock):
sock.setblocking(True)