Merge pull request #2317 from doragasu/fixes_discon_cb_on_tls_err

Call disconnect callback on TLS error.
pull/2355/head
Roger Light 4 years ago committed by GitHub
commit 3f62e80300
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -373,7 +373,11 @@ int mosquitto_loop_read(struct mosquitto *mosq, int max_packets)
#ifdef WITH_TLS
if(mosq->want_connect){
return net__socket_connect_tls(mosq);
rc = net__socket_connect_tls(mosq);
if (MOSQ_ERR_TLS == rc){
rc = mosquitto__loop_rc_handle(mosq, rc);
}
return rc;
}
#endif

Loading…
Cancel
Save