]> git.meshlink.io Git - meshlink/commit
Don't clear node dirty flag in meshlink_stop().
authorGuus Sliepen <guus@meshlink.io>
Wed, 3 Feb 2021 22:30:36 +0000 (23:30 +0100)
committerGuus Sliepen <guus@meshlink.io>
Fri, 5 Feb 2021 08:38:05 +0000 (09:38 +0100)
commitb8e1873fb13abde89eb0e367409b2f8286bbc74a
treefc668ee954ea54ba0d8f43f9d9c4a81bdd05b7d3
parent51dccd03d86de2a9911a884f2949e5300d25b958
Don't clear node dirty flag in meshlink_stop().

It's node_write_config() itself that should unset the dirty flag, depending
on the storage policy and if storage succeeded. Otherwise, we risk that
setting the storage policy back to ENABLED after calling meshlink_stop()
will not cause pending updates to be written out by meshlink_close().
src/meshlink.c