Fixed last change.
This commit is contained in:
parent
58b2364861
commit
ec767f3e30
@ -570,10 +570,10 @@ static void
|
|||||||
destroy_writer (struct writer_context_s *c)
|
destroy_writer (struct writer_context_s *c)
|
||||||
{
|
{
|
||||||
LOCK (c->mutex);
|
LOCK (c->mutex);
|
||||||
ctx->refcount--;
|
c->refcount--;
|
||||||
if (ctx->refcount != 0)
|
if (c->refcount != 0)
|
||||||
{
|
{
|
||||||
UNLOCK (ctx->mutex);
|
UNLOCK (c->mutex);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
c->stop_me = 1;
|
c->stop_me = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user