Skip to content

Commit

Permalink
No need to close stream when client has disconnected (it is already c…
Browse files Browse the repository at this point in the history
…losed).

Fixes issue #19
  • Loading branch information
njouanin committed Feb 5, 2016
1 parent de7634b commit 5458ec7
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hbmqtt/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,6 @@ def client_connected(self, listener_name, reader: ReaderAdapter, writer: WriterA
yield from self._stop_handler(handler)
client_session.transitions.disconnect()
yield from self.plugins_manager.fire_event(EVENT_BROKER_CLIENT_DISCONNECTED, client_id=client_session.client_id)
yield from writer.close()
connected = False
if unsubscribe_waiter in done:
self.logger.debug("%s handling unsubscription" % client_session.client_id)
Expand Down

0 comments on commit 5458ec7

Please sign in to comment.