]> git.meshlink.io Git - meshlink/commitdiff
Fix a debug message being logged incorrectly.
authorGuus Sliepen <guus@meshlink.io>
Tue, 7 Apr 2020 22:46:26 +0000 (00:46 +0200)
committerGuus Sliepen <guus@meshlink.io>
Tue, 7 Apr 2020 22:51:47 +0000 (00:51 +0200)
src/net.c

index 85cbf3d442fd1e60e466ca70351bbddeb1d2a126..05049cffca96c87039f94b6b5b11e5d4c2b224d8 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -610,7 +610,7 @@ static void periodic_handler(event_loop_t *loop, void *data) {
 
        for splay_each(node_t, n, mesh->nodes) {
                if(n->status.dirty) {
-                       if(node_write_config(mesh, n)) {
+                       if(!node_write_config(mesh, n)) {
                                logger(mesh, MESHLINK_DEBUG, "Could not update %s", n->name);
                        }