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
mosquitto_loop_misc function call on_disconnect callback twice when keepalive timeout #1067
Comments
My suggestion would be that you shouldn't call In your specific case, if you use |
@ralight anyway, it is no so good to call disconnect callback twice when keepalive time out, may be the keepalive mechanism need do better to avoiding this problem. |
Yes, you're right there is a redundant bit of code there. I've now removed it, thanks for spotting it. |
Thank you for your professional job! |
My code is somehting like this:
the mosquitto_loop function will call mosquitto_loop_misc function, when keepalive timeout, then mosquitto_loop_misc will do:
The text was updated successfully, but these errors were encountered: