Fix local bridges being disconnected on SIGHUP.

Closes #1942. Thanks to charlemagnelasse.
pull/1964/head
Roger A. Light 5 years ago
parent 00c68203b8
commit 1d92184b2f

@ -7,6 +7,7 @@ Broker:
Closes #1960. Closes #1960.
- Fix QoS 0 messages not being delivered if max_queued_messages was set to 0. - Fix QoS 0 messages not being delivered if max_queued_messages was set to 0.
Closes #1956. Closes #1956.
- Fix local bridges being disconnected on SIGHUP. Closes #1942.
Clients: Clients:
- Fix mosquitto_sub being unable to terminate with Ctrl-C if a successful - Fix mosquitto_sub being unable to terminate with Ctrl-C if a successful

@ -1112,6 +1112,10 @@ int mosquitto_security_apply_default(void)
#endif #endif
HASH_ITER(hh_id, db.contexts_by_id, context, ctxt_tmp){ HASH_ITER(hh_id, db.contexts_by_id, context, ctxt_tmp){
if(context->bridge){
continue;
}
/* Check for anonymous clients when allow_anonymous is false */ /* Check for anonymous clients when allow_anonymous is false */
if(db.config->per_listener_settings){ if(db.config->per_listener_settings){
if(context->listener){ if(context->listener){

Loading…
Cancel
Save