diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-23 22:37:18 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-23 22:37:18 +0200 |
commit | 3f0ae13c4b409bcf39d926f5e73d5eb0feff6eb3 (patch) | |
tree | b01aacd0c3c3ab7f7018830d630ada1d9d3838ae /src/main.c | |
parent | 0f0ac43b8fa4dfecad5548cde42152dba8d9a652 (diff) | |
download | mpd-3f0ae13c4b409bcf39d926f5e73d5eb0feff6eb3.tar.gz mpd-3f0ae13c4b409bcf39d926f5e73d5eb0feff6eb3.tar.xz mpd-3f0ae13c4b409bcf39d926f5e73d5eb0feff6eb3.zip |
directory: update do its work inside a thread
A lot of the preparation was needed (and done in previous
months) in making update thread-safe, but here it is.
This was the first thing I made work inside a thread when I
started mpd-uclinux many years ago, and also the last thing I've
done in mainline mpd to work inside a thread, go figure.
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index f37fa3328..3cfd75b3a 100644 --- a/src/main.c +++ b/src/main.c @@ -444,7 +444,7 @@ int main(int argc, char *argv[]) COMMAND_RETURN_KILL != handlePendingSignals()) { syncPlayerAndPlaylist(); client_manager_expire(); - readDirectoryDBIfUpdateIsFinished(); + reap_update_task(); } write_state_file(); |