Fix mosquitto_pub exiting with error code 0 when an error occurred.

Thanks to janniswarnat.

Closes #1285.
pull/1600/head
Roger A. Light 6 years ago
parent 5b6a806e26
commit 77afc86412

@ -15,6 +15,8 @@ Clients:
- Fix -L url parsing when `/topic` part is missing.
- Stop some error messages being printed even when `--quiet` was used.
Closes #1284.
- Fix mosquitto_pub exiting with error code 0 when an error occurred.
Closes #1285.
1.6.2 - 20190430

@ -312,7 +312,7 @@ int pub_shared_loop(struct mosquitto *mosq)
if(mode == MSGMODE_STDIN_LINE){
mosquitto_loop_stop(mosq, false);
}
return 0;
return rc;
}

Loading…
Cancel
Save