]> git.meshlink.io Git - meshlink/commitdiff
Fix waiting for peer node to become reachable in test suite.
authorGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2020 13:19:01 +0000 (15:19 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2020 13:19:01 +0000 (15:19 +0200)
test/utils.c

index f3f338c5178ef3c98548a0de69fad3f3b0fd29e4..53f83d30fb44a6ac21bea13a904ebd0039e3a0f0 100644 (file)
@@ -133,7 +133,7 @@ void open_meshlink_pair_ephemeral(meshlink_handle_t **pa, meshlink_handle_t **pb
 static void pair_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) {
        (void)node;
 
-       if(reachable) {
+       if(reachable && meshlink_get_self(mesh) != node) {
                set_sync_flag(mesh->priv, true);
        }
 }