]> granicus.if.org Git - pgbouncer/commitdiff
disconnect_client: ignore notify=true if state=CL_CANCEL
authorMarko Kreen <markokr@gmail.com>
Fri, 11 Jan 2008 20:48:48 +0000 (20:48 +0000)
committerMarko Kreen <markokr@gmail.com>
Fri, 11 Jan 2008 20:48:48 +0000 (20:48 +0000)
src/objects.c

index e1361101217ad19e06e72836572fc41a41239e39..70c5686a3cb58d661087f5b788b0b44f5c52a135 100644 (file)
@@ -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