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

Thanks to janniswarnat.

Closes #1285.
This commit is contained in:
Roger A. Light 2019-05-21 11:39:19 +01:00
parent 7a33a129d6
commit 29cf965b4f
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;
}