1
0
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:
Karl Heyes 2003-11-17 23:53:37 +00:00
parent 268909fbcb
commit cfc2695927

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;