aboutsummaryrefslogtreecommitdiffstats
path: root/src/sig_handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sig_handlers.c')
-rw-r--r--src/sig_handlers.c6
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;