X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=a33c33979c84ba6b20776abb6e7f5f4743f049f7;hp=4026c41f54738e14623769513f61c9a25a032caa;hb=fcaa1807cfe424af2498c75b9c6ea6f490dc15ce;hpb=79d712373a1beb6bca71af56b1540834d467dce1 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); } }