Skip to content

Commit

Permalink
Fix $SYS/broker/publish/messages/+ counters not being updated for QoS…
Browse files Browse the repository at this point in the history
… 1, 2

Closes #1968. Thanks to promahn.
  • Loading branch information
ralight committed Dec 18, 2020
1 parent a4c67d0 commit 79339ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ChangeLog.txt
Expand Up @@ -3,8 +3,8 @@ Broker:
- Fix DH group not being set for TLS connections, which meant ciphers using
DHE couldn't be used. Closes #1925. Closes #1476.
- Fix local bridges being disconnected on SIGHUP. Closes #1942.


- Fix $SYS/broker/publish/messages/+ counters not being updated for QoS 1, 2
messages. Closes #1968.
- Fix listener not being reassociated with client when reloading a persistence
file and `per_listener_settings true` is set and the client did not set a
username. Closes #1891.
Expand Down
2 changes: 2 additions & 0 deletions lib/packet_mosq.c
Expand Up @@ -285,6 +285,8 @@ int packet__write(struct mosquitto *mosq)
mosquitto__free(packet);
return MOSQ_ERR_SUCCESS;
#endif
}else if(((packet->command)&0xF0) == CMD_PUBLISH){
G_PUB_MSGS_SENT_INC(1);
}

/* Free data and reset values */
Expand Down

0 comments on commit 79339ce

Please sign in to comment.