Fix error codes not being returned when mosquitto_pub exits.

Closes #1354. Thanks to Ben Barbour.
pull/1364/head
Roger A. Light 6 years ago
parent 3ad780839d
commit b807daed28

@ -11,6 +11,10 @@ Client library:
- Fix MQTT v5 subscription options being incorrectly set for MQTT v3
subscriptions. Closes #1353.
Clients:
- mosquitto_pub: fix error codes not being returned when mosquitto_pub exits.
Closes #1354.
1.6.3 - 20190618
================

@ -103,8 +103,10 @@ void my_disconnect_callback(struct mosquitto *mosq, void *obj, int rc, const mos
UNUSED(rc);
UNUSED(properties);
if(rc == 0){
status = STATUS_DISCONNECTED;
}
}
int my_publish(struct mosquitto *mosq, int *mid, const char *topic, int payloadlen, void *payload, int qos, bool retain)
{

Loading…
Cancel
Save