Skip to content
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

disconnect error #738

Closed
liuhuan0225 opened this issue Dec 23, 2024 · 6 comments
Closed

disconnect error #738

liuhuan0225 opened this issue Dec 23, 2024 · 6 comments

Comments

@liuhuan0225
Copy link

liuhuan0225 commented Dec 23, 2024

when isAutomaticReconnect = true

If I'm currently in the process of auto-reconnecting, calling disconnect() has no effect.

@liuhuan0225
Copy link
Author

liuhuan0225 commented Dec 23, 2024

Maybe I need MqttAndroidClient.disconnectForcibly(),but it is only a error

@Throws(MqttException::class)
override fun disconnectForcibly() {
     throw UnsupportedOperationException()
}

@hannesa2
Copy link
Owner

Please feel free to make a pull request.

Btw, please keep in mind, that there are 3 such methods
image

@liuhuan0225
Copy link
Author

liuhuan0225 commented Dec 25, 2024

image

Yes, but there is only UnsupportedOperationException
I need to stop automatic connection and destroy the release resources

@hannesa2
Copy link
Owner

Yes, but there is only UnsupportedOperationException
I need to stop automatic connection and destroy the release resources

Yes, this is the missing task. Here some magic code is missing

@liuhuan0225
Copy link
Author

Please let me know once it's done. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants