mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
patch from mike, unlock logger on failure case.
svn path=/trunk/log/; revision=5597
This commit is contained in:
parent
268909fbcb
commit
cfc2695927
@ -242,7 +242,11 @@ void log_close(int log_id)
|
|||||||
|
|
||||||
_lock_logger();
|
_lock_logger();
|
||||||
|
|
||||||
if (loglist[log_id].in_use == 0) return;
|
if (loglist[log_id].in_use == 0)
|
||||||
|
{
|
||||||
|
_unlock_logger();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
loglist[log_id].in_use = 0;
|
loglist[log_id].in_use = 0;
|
||||||
loglist[log_id].level = 2;
|
loglist[log_id].level = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user