diff --git a/flask_mqtt/__init__.py b/flask_mqtt/__init__.py index 23e6871..c4420e2 100644 --- a/flask_mqtt/__init__.py +++ b/flask_mqtt/__init__.py @@ -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.