issue #249: fix ordering bug masked by previous implementation
This commit is contained in:
parent
4cd9e09130
commit
07056b0dd1
|
@ -805,11 +805,11 @@ class BasicStream(object):
|
|||
|
||||
def on_disconnect(self, broker):
|
||||
LOG.debug('%r.on_disconnect()', self)
|
||||
broker.stop_receive(self)
|
||||
broker._stop_transmit(self)
|
||||
if self.receive_side:
|
||||
broker.stop_receive(self)
|
||||
self.receive_side.close()
|
||||
if self.transmit_side:
|
||||
broker._stop_transmit(self)
|
||||
self.transmit_side.close()
|
||||
fire(self, 'disconnect')
|
||||
|
||||
|
|
Loading…
Reference in New Issue