Skip to content

Commit

Permalink
pass disconnect properties to on_disconnect handler
Browse files Browse the repository at this point in the history
  • Loading branch information
miketrebilcock authored Oct 10, 2023
1 parent 5666628 commit 7ff4ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_mqtt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _handle_connect(
def _handle_disconnect(self, client: Client, userdata: Any, rc: int) -> None:
self.connected = False
if self._disconnect_handler is not None:
self._disconnect_handler()
self._disconnect_handler(client, userdata, rc)

def on_topic(self, topic: str) -> Callable:
"""Decorator.
Expand Down

0 comments on commit 7ff4ba6

Please sign in to comment.