Commit 6fc8fa5b authored by David Wilson's avatar David Wilson

core: Don't crash if a stream is missing a side.

parent 9238e09a
...@@ -619,7 +619,9 @@ class BasicStream(object): ...@@ -619,7 +619,9 @@ class BasicStream(object):
LOG.debug('%r.on_disconnect()', self) LOG.debug('%r.on_disconnect()', self)
broker.stop_receive(self) broker.stop_receive(self)
broker.stop_transmit(self) broker.stop_transmit(self)
if self.receive_side:
self.receive_side.close() self.receive_side.close()
if self.transmit_side:
self.transmit_side.close() self.transmit_side.close()
fire(self, 'disconnect') fire(self, 'disconnect')
......
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