diff options
author | Max Kellermann <max@duempel.org> | 2009-10-13 16:12:44 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-10-13 16:12:44 +0200 |
commit | a9dc0e816c0b6c0ed19a584225e3fe6251f1a4c6 (patch) | |
tree | 5664c95f0cd333a76c982295954c63098bd73400 /src/state_file.c | |
parent | 4390d72b141304b8dfcdb374b428d3b4fae56237 (diff) | |
download | mpd-a9dc0e816c0b6c0ed19a584225e3fe6251f1a4c6.tar.gz mpd-a9dc0e816c0b6c0ed19a584225e3fe6251f1a4c6.tar.xz mpd-a9dc0e816c0b6c0ed19a584225e3fe6251f1a4c6.zip |
state_file: use g_timeout_add_seconds()
Diffstat (limited to '')
-rw-r--r-- | src/state_file.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/state_file.c b/src/state_file.c index 4ba157b14..aa66720c1 100644 --- a/src/state_file.c +++ b/src/state_file.c @@ -134,8 +134,9 @@ state_file_init(const char *path) state_file_path = g_strdup(path); state_file_read(); - save_state_source_id = g_timeout_add(5 * 60 * 1000, - timer_save_state_file, NULL); + save_state_source_id = g_timeout_add_seconds(5 * 60, + timer_save_state_file, + NULL); } void |