X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fnet.c;h=6fd90e194442e9e96298825fa28083bf6cb444be;hb=HEAD;hp=9a062f41482536f4f1d7fc4e1051e8240bae9ea6;hpb=afea9096fa708b2a2e6e24c308c0f1a80eefa5cc;p=meshlink diff --git a/src/net.c b/src/net.c index 9a062f41..35cfc650 100644 --- a/src/net.c +++ b/src/net.c @@ -52,7 +52,9 @@ static const int default_interval = 60; - 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) {