diff --git a/lib/codeclib.c b/lib/codeclib.c index 67e6f0a76..8fcf96f90 100644 --- a/lib/codeclib.c +++ b/lib/codeclib.c @@ -5473,7 +5473,7 @@ void codec_cc_free(codec_cc_t **ccp) { { LOCK(&c->async_lock); - if (c->async_busy) { + if (c->async_busy && !c->async_blocked) { c->async_shutdown = true; return; // wait for callback }