Skip to content

Commit

Permalink
Fix reconnect+will delay interval issue causing missing messages.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ralight committed Aug 11, 2020
1 parent 60dc8f5 commit 4b100df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Expand Up @@ -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.
Expand Down
1 change: 1 addition & 0 deletions lib/will_mosq.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4b100df

Please sign in to comment.