From: Marko Kreen Date: Fri, 11 Jan 2008 20:48:48 +0000 (+0000) Subject: disconnect_client: ignore notify=true if state=CL_CANCEL X-Git-Tag: pgbouncer_1_2_rc2~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1c2dfd1137fb56c3d45e8dac91aaea48f8594839;p=pgbouncer disconnect_client: ignore notify=true if state=CL_CANCEL --- 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