diff options
author | Max Kellermann <max@duempel.org> | 2014-08-24 12:59:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-24 13:24:20 +0200 |
commit | 42af040fbd0cd2b9942f02ace3462ee8ac41d3ac (patch) | |
tree | 77501fc829969fe8bf07739329ca5431fbdded29 /src/Main.cxx | |
parent | d383d617c2d16bda9f32fe31e0171a59f4601f89 (diff) | |
download | mpd-42af040fbd0cd2b9942f02ace3462ee8ac41d3ac.tar.gz mpd-42af040fbd0cd2b9942f02ace3462ee8ac41d3ac.tar.xz mpd-42af040fbd0cd2b9942f02ace3462ee8ac41d3ac.zip |
StateFile: configurable interval
Diffstat (limited to 'src/Main.cxx')
-rw-r--r-- | src/Main.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx index d8dbdb5d2..d8384abfb 100644 --- a/src/Main.cxx +++ b/src/Main.cxx @@ -279,7 +279,10 @@ glue_state_file_init(Error &error) #endif } - state_file = new StateFile(std::move(path_fs), + unsigned interval = config_get_unsigned(CONF_STATE_FILE_INTERVAL, + StateFile::DEFAULT_INTERVAL); + + state_file = new StateFile(std::move(path_fs), interval, *instance->partition, *instance->event_loop); state_file->Read(); |