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
This commit is contained in:
Warren Dukes 2004-04-14 23:08:28 +00:00
parent c68dda4742
commit 794799eaf4

View File

@ -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;