Main: save the state_file on shutdown
This got lost in commit5d597a3646
(v0.21.19), but it was never noticed because the state_file_interval was way too short due to commit3413d1bf23
, fixed recently by commit27cc7b352d
This commit is contained in:
@@ -533,6 +533,9 @@ MainConfigured(const struct options &options, const ConfigData &raw_config)
|
||||
|
||||
/* cleanup */
|
||||
|
||||
if (instance.state_file)
|
||||
instance.state_file->Write();
|
||||
|
||||
instance.BeginShutdownUpdate();
|
||||
|
||||
ZeroconfDeinit();
|
||||
|
Reference in New Issue
Block a user