Don't send scan stopped events if the scan was aborted by service shutdown

This commit is contained in:
Ron Pedde 2006-06-01 06:20:55 +00:00
parent 6fd6a1c9bb
commit 95dd1048be

View File

@ -408,7 +408,9 @@ int main(int argc, char *argv[]) {
if(scan_init(mp3_dir_array)) {
DPRINTF(E_LOG,L_MAIN|L_SCAN,"Error scanning MP3 files: %s\n",strerror(errno));
}
plugin_event_dispatch(PLUGIN_EVENT_FULLSCAN_END,0,NULL,0);
if(!confog.stop) { /* don't send popup when shutting down on scan */
plugin_event_dispatch(PLUGIN_EVENT_FULLSCAN_END,0,NULL,0);
}
}
conf_dispose_array(mp3_dir_array);
}