Stop hang while getting db_Version when rescanning

This commit is contained in:
Ron Pedde
2004-09-19 05:18:17 +00:00
parent 078c1e98e1
commit 2861761d36
2 changed files with 9 additions and 8 deletions

View File

@@ -719,13 +719,12 @@ int main(int argc, char *argv[]) {
}
if(config.reload) {
config.reload=0;
DPRINTF(ERR_LOG,"Reloading configuration\n");
DPRINTF(ERR_LOG,"Rescanning database\n");
if(scan_init(config.mp3dir)) {
DPRINTF(ERR_LOG,"Error rescanning... exiting\n");
config.stop=1;
}
config.reload=0;
}
sleep(MAIN_SLEEP_INTERVAL);