X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=a33c33979c84ba6b20776abb6e7f5f4743f049f7;hb=9ece2f9ded8c65c7f20826f2ec9ae1f0527bdd7c;hp=4026c41f54738e14623769513f61c9a25a032caa;hpb=477973fd217114dec8218cb7f8d99655272a3669;p=meshlink diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 4026c41f..a33c3397 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -436,9 +436,11 @@ bool ack_h(meshlink_handle_t *mesh, connection_t *c, const char *request) { n->connection->outgoing = NULL; } + /* Remove the edge before terminating the connection, to prevent a graph update. */ + edge_del(mesh, n->connection->edge); + n->connection->edge = NULL; + terminate_connection(mesh, n->connection, false); - /* Run graph algorithm to keep things in sync */ - graph(mesh); } }