aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0f706a426..3ec0b6fd0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -451,10 +451,10 @@ int main(int argc, char * argv[]) {
while(COMMAND_RETURN_KILL!=doIOForInterfaces()) {
syncPlayerAndPlaylist();
closeOldInterfaces();
+ if(COMMAND_RETURN_KILL==handlePendingSignals()) break;
+ readDirectoryDBIfUpdateIsFinished();
}
- finishSigHandlers();
-
savePlaylistState();
playerKill();