diff options
author | Eric Wong <normalperson@yhbt.net> | 2008-09-22 02:04:23 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-09-22 02:07:22 -0700 |
commit | ada24f9a921ff95d874195acf253b5a9dd12213d (patch) | |
tree | 25829d050689696f1c94500062b6c53ea2437d91 /src/main.c | |
parent | e3cd520c6441f91655e799e60fe49c4bb7de13bc (diff) | |
download | mpd-ada24f9a921ff95d874195acf253b5a9dd12213d.tar.gz mpd-ada24f9a921ff95d874195acf253b5a9dd12213d.tar.xz mpd-ada24f9a921ff95d874195acf253b5a9dd12213d.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 dcfb7f64d..8028505ab 100644 --- a/src/main.c +++ b/src/main.c @@ -439,7 +439,7 @@ int main(int argc, char *argv[]) COMMAND_RETURN_KILL != handlePendingSignals()) { syncPlayerAndPlaylist(); client_manager_expire(); - readDirectoryDBIfUpdateIsFinished(); + reap_update_task(); } write_state_file(); |