Skip to content

Commit

Permalink
Fix mosquitto_pub exiting with error code 0 when an error occurred.
Browse files Browse the repository at this point in the history
Thanks to janniswarnat.

Closes #1285.
  • Loading branch information
ralight committed May 21, 2019
1 parent 7a33a12 commit 29cf965
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion client/pub_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 29cf965

Please sign in to comment.