- Check if we need to retry making an outgoing connection
*/
void terminate_connection(meshlink_handle_t *mesh, connection_t *c, bool report) {
- logger(mesh, MESHLINK_INFO, "Closing connection with %s", c->name);
+ if(c->status.active) {
+ logger(mesh, MESHLINK_INFO, "Closing connection with %s", c->name);
+ }
if(c->node && c->node->connection == c) {
if(c->status.active && mesh->meta_status_cb) {
for splay_each(node_t, n, mesh->nodes) {
if(n->status.dirty) {
- if(!node_write_config(mesh, n)) {
+ if(!node_write_config(mesh, n, false)) {
logger(mesh, MESHLINK_DEBUG, "Could not update %s", n->name);
}
-
- n->status.dirty = false;
}
if(n->status.reachable && n->status.validkey && n->last_req_key + 3600 < mesh->loop.now.tv_sec) {