Fix messages being queued for disconnected bridges

This occurred incorrectly when clean start was set to true.

Closes #1729. Thanks to Andreyooo.
pull/1769/head
Roger A. Light 5 years ago
parent d9003bb858
commit 4e0312c55f

@ -7,6 +7,8 @@ Broker:
- Don't quit with an error if opening the log file isn't possible.
Closes #821.
- Fix bridge topic remapping when using "" as the topic. Closes #1749.
- Fix messages being queued for disconnected bridges when clean start was
set to true. Closes #1729.
Client library:
- Improved documentation around connect callback return codes. Close #1730.

@ -394,6 +394,10 @@ int db__message_insert(struct mosquitto_db *db, struct mosquitto *context, uint1
}
}
}
if(context->bridge && context->bridge->clean_start == true){
mosquitto_property_free_all(&properties);
return 2;
}
}
if(context->sock != INVALID_SOCKET){

Loading…
Cancel
Save