1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

patch from mike, unlock logger on failure case.

svn path=/trunk/log/; revision=5597
This commit is contained in:
Karl Heyes 2003-11-17 23:53:37 +00:00
parent 830b1966b2
commit 862baa20e8

View File

@ -242,7 +242,11 @@ void log_close(int log_id)
_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].level = 2;