From b08a53f3c9b75a9a444e1e96fd690d6cb8ff8ace Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Tue, 2 Jun 2009 21:19:37 +0000 Subject: [PATCH] * Eliminate a race condition whereby inotify watches would not be set after the initial scan completed. --- minidlna.c | 1 + 1 file changed, 1 insertion(+) diff --git a/minidlna.c b/minidlna.c index c26a7dc..8fa3c61 100644 --- a/minidlna.c +++ b/minidlna.c @@ -670,6 +670,7 @@ main(int argc, char * * argv) { DPRINTF(E_FATAL, L_GENERAL, "ERROR: Failed to create sqlite database! Exiting...\n"); } + scanning = 1; #if USE_FORK if( pthread_create(&thread[0], NULL, start_scanner, NULL) ) {