diff --git a/nwatch.c b/nwatch.c index 0f048358..356950dc 100644 --- a/nwatch.c +++ b/nwatch.c @@ -271,6 +271,7 @@ static int NetWatchContextRemQue(pNetWatch self, pNWContext handle) pNxt->next = pNxt->next->next; break; } + pNxt = pNxt->next; } if (handle == self->cq_tail) /* if last */ self->cq_tail = pNxt;