issue #406: unix: fix ordering of stop_receive/close.
This commit is contained in:
parent
661e274556
commit
586c6aca9a
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue