diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-04-14 23:08:28 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-04-14 23:08:28 +0000 |
commit | 794799eaf42f401302ce7e0061ebed1741d2893b (patch) | |
tree | 469c845712b1f7b4474072036de03253f83e76d1 | |
parent | c68dda47423524938d8e415001104addf7bb4aa3 (diff) | |
download | mpd-794799eaf42f401302ce7e0061ebed1741d2893b.tar.gz mpd-794799eaf42f401302ce7e0061ebed1741d2893b.tar.xz mpd-794799eaf42f401302ce7e0061ebed1741d2893b.zip |
don't updatedb on sighup if db is being updated
git-svn-id: https://svn.musicpd.org/mpd/trunk@768 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/sig_handlers.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sig_handlers.c b/src/sig_handlers.c index f23d8606f..06f7bf765 100644 --- a/src/sig_handlers.c +++ b/src/sig_handlers.c @@ -40,8 +40,10 @@ int handlePendingSignals() { if(signal_is_pending(SIGHUP)) { DEBUG("got SIGHUP, rereading DB\n"); signal_clear(SIGHUP); - readDirectoryDB(); - incrPlaylistVersion(); + if(!isUpdatingDB()) { + readDirectoryDB(); + incrPlaylistVersion(); + } } return 0; |