don't try and free a client that can't be freed
Former-commit-id: 7d3c5f1e64a79f47a103ce97c6991aa473fb697a
This commit is contained in:
parent
51ef4343c4
commit
59a1d5085f
@ -1542,7 +1542,7 @@ int freeClientsInAsyncFreeQueue(int iel) {
|
|||||||
while((ln = listNext(&li)))
|
while((ln = listNext(&li)))
|
||||||
{
|
{
|
||||||
client *c = (client*)listNodeValue(ln);
|
client *c = (client*)listNodeValue(ln);
|
||||||
if (c->iel == iel && !(c->flags & CLIENT_PROTECTED))
|
if (c->iel == iel && !(c->flags & CLIENT_PROTECTED) && !c->casyncOpsPending)
|
||||||
{
|
{
|
||||||
vecclientsFree.push_back(c);
|
vecclientsFree.push_back(c);
|
||||||
listDelNode(g_pserver->clients_to_close, ln);
|
listDelNode(g_pserver->clients_to_close, ln);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user