Fix stop attempts during initial scan

This commit is contained in:
Ron Pedde 2005-03-13 21:22:05 +00:00
parent 5eb03dae42
commit 0df3ad01e1

View File

@ -414,6 +414,7 @@ int main(int argc, char *argv[]) {
/* read the configfile, if specified, otherwise
* try defaults */
config.stats.start_time=start_time=time(NULL);
config.stop=0;
if(config_read(configfile)) {
fprintf(stderr,"Error reading config file (%s)\n",configfile);
@ -524,8 +525,6 @@ int main(int argc, char *argv[]) {
DPRINTF(E_LOG,L_MAIN,"Scanned %d songs in %d seconds\n",db_get_song_count(),
end_time-start_time);
config.stop=0;
while(!config.stop) {
if((config.rescan_interval) && (rescan_counter > config.rescan_interval)) {
if((config.always_scan) || (config_get_session_count())) {