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 eclipse#1968. Thanks to promahn.
  • Loading branch information
ralight authored and fAuernigg committed Jan 4, 2021
1 parent 2f9fd00 commit d715428
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.txt
@@ -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
==================

Expand Down
2 changes: 2 additions & 0 deletions lib/packet_mosq.c
Expand Up @@ -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 */
Expand Down

0 comments on commit d715428

Please sign in to comment.