]> git.meshlink.io Git - meshlink/commitdiff
Don't attempt to sync confbase for ephemeral nodes during a join.
authorGuus Sliepen <guus@meshlink.io>
Wed, 22 Jul 2020 21:34:06 +0000 (23:34 +0200)
committerGuus Sliepen <guus@meshlink.io>
Wed, 22 Jul 2020 21:34:06 +0000 (23:34 +0200)
src/meshlink.c

index 07326d56f0642e644628346cbf5a06779e5c830c..0843cc0c4826d0d3a800904f28e4c1c51704c528 100644 (file)
@@ -829,7 +829,7 @@ static bool finalize_join(join_state_t *state, const void *buf, uint16_t len) {
        }
 
        /* Ensure the configuration directory metadata is on disk */
-       if(!config_sync(mesh, "current") || !sync_path(mesh->confbase)) {
+       if(!config_sync(mesh, "current") || (mesh->confbase && !sync_path(mesh->confbase))) {
                return false;
        }