Fix mosquitto_pub not always sending everything with -l and QoS>0.

pull/1203/head
Roger A. Light 7 years ago
parent 6eefb45b44
commit 2f54b16544

@ -17,6 +17,10 @@ Client features:
its subscriptions acknowledged. Use with -c to create a durable client
session without requiring a message to be received.
Client fixes:
- mosquitto_pub wouldn't always publish all messages when using `-l` and
QoS>0. This has been fixed.
1.5.5 - 20181211
================

@ -200,7 +200,7 @@ int pub_shared_loop(struct mosquitto *mosq)
}
}
if(feof(stdin)){
if(last_mid == -1){
if(mid_sent == -1){
/* Empty file */
mosquitto_disconnect_v5(mosq, 0, cfg.disconnect_props);
disconnect_sent = true;

Loading…
Cancel
Save