]> granicus.if.org Git - pgbouncer/commitdiff
no need to use disconnect_client() as disconnect_server also notifies client
authorMarko Kreen <markokr@gmail.com>
Thu, 16 Aug 2007 07:54:57 +0000 (07:54 +0000)
committerMarko Kreen <markokr@gmail.com>
Thu, 16 Aug 2007 07:54:57 +0000 (07:54 +0000)
src/server.c

index 5ad3df7b385d463f92d658973009914bb85d2af2..41f8a67a49e2271049167073085fe74e9454b0ae 100644 (file)
@@ -184,7 +184,7 @@ static bool handle_server_work(PgSocket *server, PktHdr *pkt)
                         *
                         * no reason to keep such guys.
                         */
-                       disconnect_client(server->link, true, "invalid server parameter");
+                       disconnect_server(server, true, "invalid server parameter");
                        return false;
                }
        case 'N':               /* NoticeResponse */