-
Notifications
You must be signed in to change notification settings - Fork 171
Open
Labels
Description
🐛 Bug Report
Cannot call disconnect in non-CONNECTED state
Unable to stop automaticReconnect in Android Device
hivemq-shaded = { group = "com.hivemq", name = "hivemq-mqtt-client-shaded", version = "1.3.5" }
🔬 How To Reproduce
Steps to reproduce the behavior:
- useMqttVersion3().automaticReconnect().initialDelay(1, TimeUnit.SECONDS).maxDelay(2, TimeUnit.SECONDS).applyAutomaticReconnect()
- Turn off device network and run HiveMQ
- disconnect() 提示 com.hivemq.client.mqtt.exceptions.MqttClientStateException: MQTT client is not connected.
- AutomaticReconnect will still be executed and cannot be stopped
Hussein-Al-Zuhile