mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-26 21:36:43 +08:00
Fix mosquitto_pub not always sending everything with -l and QoS>0.
This commit is contained in:
@@ -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
|
||||
================
|
||||
|
||||
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user