Skip to content

How to turn off RECONNECT? #675

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
liuhuan0225 opened this issue Apr 2, 2025 · 0 comments
Open

How to turn off RECONNECT? #675

liuhuan0225 opened this issue Apr 2, 2025 · 0 comments
Labels

Comments

@liuhuan0225
Copy link

liuhuan0225 commented Apr 2, 2025

🐛 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:

  1. useMqttVersion3().automaticReconnect().initialDelay(1, TimeUnit.SECONDS).maxDelay(2, TimeUnit.SECONDS).applyAutomaticReconnect()
  2. Turn off device network and run HiveMQ
  3. disconnect() 提示 com.hivemq.client.mqtt.exceptions.MqttClientStateException: MQTT client is not connected.
  4. AutomaticReconnect will still be executed and cannot be stopped
@liuhuan0225 liuhuan0225 added the bug label Apr 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant