You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But instead, I have to call mosquitto_loop_start again after mosquitto_disconnect. Otherwise I won't get the connect callback on the second mosquitto_connect_async.
This is more of an unexpected behavior on my part and maybe I just haven't found the right documentation.
I assumed I could call the following sequence and the client would just resume running the loop after the second connect.
But instead, I have to call
mosquitto_loop_start
again aftermosquitto_disconnect
. Otherwise I won't get the connect callback on the secondmosquitto_connect_async
.I believe it's because of the following lines:
https://github.com/eclipse/mosquitto/blob/master/lib/loop.c#L297-L298
https://github.com/eclipse/mosquitto/blob/master/lib/loop.c#L320-L321
Mosquitto Version: 2.0.14
The text was updated successfully, but these errors were encountered: