From: Guus Sliepen Date: Thu, 10 Oct 2019 20:16:20 +0000 (+0200) Subject: Fix waiting for two nodes to become reachable in the test suite. X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=3e671a6a114a31ca1e6bbd0d13921637ee7ce1b5;p=meshlink Fix waiting for two nodes to become reachable in the test suite. --- diff --git a/test/utils.c b/test/utils.c index d66ecdf9..f7dd3b3c 100644 --- a/test/utils.c +++ b/test/utils.c @@ -97,7 +97,9 @@ void open_meshlink_pair(meshlink_handle_t **pa, meshlink_handle_t **pb, const ch static void pair_status_cb(meshlink_handle_t *mesh, meshlink_node_t *node, bool reachable) { (void)node; - set_sync_flag(mesh->priv, reachable); + if(reachable) { + set_sync_flag(mesh->priv, true); + } } void start_meshlink_pair(meshlink_handle_t *a, meshlink_handle_t *b) {