Merged
Merge Request #22 · created by Peter M. Groen


Activate Resubscribe only after a correct state-change

[Bug] If connecting and subscribing to a retained message, the message was received twice.

[Solution] Check for old and new state of the connection. Only call resubscribe when state changes from ::ConnectionFailure to ::Good. This prevents the calling of the re-subscribe in all other cases. Paho-C has the States defined, but not the state-transitions.


From fix/pgroen/resubscribe_called_unnecessary into master

Merged by Peter M. Groen

Source branch has been removed
1 participants