[453293] Don't quit loop_forever() if broker not available.

This is a workaround for bug #453293, a better solution is needed for
1.5.

Bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=453293
pull/211/merge
Roger A. Light 11 years ago
parent ff038b312a
commit 1a14f6fed5

@ -86,6 +86,8 @@ Client library:
- Wildcard TLS certificates are now supported.
- mosquittopp now has a virtual destructor. Closes bug #452915.
- Add support for MQTT v3.1.1.
- Don't quit mosquitto_loop_forever() if broker not available on first
connect. Closes bug #453293, but requires more work.
1.3.5 - 20141008

@ -999,10 +999,11 @@ int mosquitto_loop_forever(struct mosquitto *mosq, int timeout, int max_packets)
case MOSQ_ERR_AUTH:
case MOSQ_ERR_ACL_DENIED:
case MOSQ_ERR_UNKNOWN:
case MOSQ_ERR_ERRNO:
case MOSQ_ERR_EAI:
case MOSQ_ERR_PROXY:
return rc;
case MOSQ_ERR_ERRNO:
break;
}
if(errno == EPROTO){
return rc;

Loading…
Cancel
Save