mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Maybe fix for deadlocks on smp
This commit is contained in:
parent
57d82a07d5
commit
ebeaed447e
@ -157,13 +157,14 @@ void err_log(int level, unsigned int cat, char *fmt, ...)
|
||||
os_closesyslog();
|
||||
}
|
||||
|
||||
_err_unlock();
|
||||
|
||||
#ifndef ERR_LEAN
|
||||
if(level < 2) { /* only event level fatals and log level */
|
||||
plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1);
|
||||
}
|
||||
#endif
|
||||
|
||||
_err_unlock();
|
||||
|
||||
if(!level) {
|
||||
exit(EXIT_FAILURE); /* this should go to an OS-specific exit routine */
|
||||
|
Loading…
Reference in New Issue
Block a user