Commit e076ff90 authored by Max Kellermann's avatar Max Kellermann

DecoderAPI: log without holding mutex

parent 2789493a
...@@ -283,11 +283,11 @@ decoder_read(Decoder *decoder, ...@@ -283,11 +283,11 @@ decoder_read(Decoder *decoder,
assert(nbytes == 0 || !error.IsDefined()); assert(nbytes == 0 || !error.IsDefined());
assert(nbytes > 0 || error.IsDefined() || is.IsEOF()); assert(nbytes > 0 || error.IsDefined() || is.IsEOF());
is.Unlock();
if (gcc_unlikely(nbytes == 0 && error.IsDefined())) if (gcc_unlikely(nbytes == 0 && error.IsDefined()))
LogError(error); LogError(error);
is.Unlock();
return nbytes; return nbytes;
} }
......
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