1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-05-08 16:52:13 +08:00

Fix $SYS/broker/publish/messages/+ counters not being updated for QoS 1, 2

Closes #1968. Thanks to promahn.
This commit is contained in:
Roger A. Light 2020-12-18 22:55:10 +00:00
parent 119b883e86
commit e02b5a2775
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Broker:
- Fix $SYS/broker/publish/messages/+ counters not being updated for QoS 1, 2
messages. Closes #1968.
2.0.3 - 2020-12-17
==================

View File

@ -294,6 +294,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 */