From 794799eaf42f401302ce7e0061ebed1741d2893b Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 14 Apr 2004 23:08:28 +0000 Subject: 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 --- src/sig_handlers.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3