Merged
Merge Request #22
·
created by
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
-
mentioned in commit 8660a680ecc4710e51716e241bf8433dfea331ce
-
Status changed to merged