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:
parent
bbfa6fe632
commit
3562a3e51e
1
NEWS
1
NEWS
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue