From 1c2dfd1137fb56c3d45e8dac91aaea48f8594839 Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Fri, 11 Jan 2008 20:48:48 +0000 Subject: [PATCH] disconnect_client: ignore notify=true if state=CL_CANCEL --- src/objects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects.c b/src/objects.c index e136110..70c5686 100644 --- a/src/objects.c +++ b/src/objects.c @@ -667,7 +667,7 @@ void disconnect_client(PgSocket *client, bool notify, const char *reason) } /* send reason to client */ - if (notify && reason) { + if (notify && reason && client->state != CL_CANCEL) { /* * don't send Ready pkt here, or client won't notice * closed connection -- 2.40.0