Commit cfc26959 authored by Karl Heyes's avatar Karl Heyes

patch from mike, unlock logger on failure case.

svn path=/trunk/log/; revision=5597
parent 268909fb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment