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:
parent
c68dda4742
commit
794799eaf4
@ -40,8 +40,10 @@ int handlePendingSignals() {
|
|||||||
if(signal_is_pending(SIGHUP)) {
|
if(signal_is_pending(SIGHUP)) {
|
||||||
DEBUG("got SIGHUP, rereading DB\n");
|
DEBUG("got SIGHUP, rereading DB\n");
|
||||||
signal_clear(SIGHUP);
|
signal_clear(SIGHUP);
|
||||||
readDirectoryDB();
|
if(!isUpdatingDB()) {
|
||||||
incrPlaylistVersion();
|
readDirectoryDB();
|
||||||
|
incrPlaylistVersion();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user