Fix reconnect+will delay interval issue causing missing messages.

Fix clients not receiving messages after a previous client with the same   client ID and positive will delay interval quit.
Closes #1752. Thanks to Jiří Zuzaňák.
This commit is contained in:
Roger A. Light 2020-08-11 10:56:35 +01:00
parent 60dc8f5e4c
commit 4b100df5b1
2 changed files with 3 additions and 0 deletions

View File

@ -24,6 +24,8 @@ Broker:
- Don't try to start DLT logging if DLT unavailable, to avoid a long delay
when shutting down the broker. Closes #1735.
- Fix potential memory leaks. Closes #1773. Closes #1774.
- Fix clients not receiving messages after a previous client with the same
client ID and positive will delay interval quit. Closes #1752.
Client library:
- Improved documentation around connect callback return codes. Close #1730.

View File

@ -120,6 +120,7 @@ int will__clear(struct mosquitto *mosq)
mosquitto__free(mosq->will);
mosq->will = NULL;
mosq->will_delay_interval = 0;
return MOSQ_ERR_SUCCESS;
}