]> 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>
Wed, 3 Mar 2021 11:39:50 +0000 (12:39 +0100)
commit3ed9219f9f7a7b0f71843aa1ca05b5d3cf5cf016
tree616d5bfaa047208ffb6f6d8187cc6dffbe3fae25
parentafea9096fa708b2a2e6e24c308c0f1a80eefa5cc
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