DecoderAPI: log without holding mutex
This commit is contained in:
parent
2789493a5f
commit
e076ff9085
@ -283,11 +283,11 @@ decoder_read(Decoder *decoder,
|
||||
assert(nbytes == 0 || !error.IsDefined());
|
||||
assert(nbytes > 0 || error.IsDefined() || is.IsEOF());
|
||||
|
||||
is.Unlock();
|
||||
|
||||
if (gcc_unlikely(nbytes == 0 && error.IsDefined()))
|
||||
LogError(error);
|
||||
|
||||
is.Unlock();
|
||||
|
||||
return nbytes;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user