Commit 3562a3e5 authored by Max Kellermann's avatar Max Kellermann

Main: save the state_file on shutdown

This got lost in commit 5d597a36 (v0.21.19), but it was never noticed because the state_file_interval was way too short due to commit 3413d1bf, fixed recently by commit 27cc7b35
parent bbfa6fe6
......@@ -2,6 +2,7 @@ ver 0.22.2 (not yet released)
* database
- simple: purge songs and virtual directories for unavailable plugins
on update
* state_file: save on shutdown
ver 0.22.1 (2020/10/17)
* decoder
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment