mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-13 07:53:23 -05:00
Don't send scan stopped events if the scan was aborted by service shutdown
This commit is contained in:
parent
6fd6a1c9bb
commit
95dd1048be
@ -408,8 +408,10 @@ 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));
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user