Move X packet before shutdown().
authorBruce Momjian
Sun, 11 Feb 2001 13:15:28 +0000 (13:15 +0000)
committerBruce Momjian
Sun, 11 Feb 2001 13:15:28 +0000 (13:15 +0000)
src/interfaces/odbc/socket.c

index 9b713fb714f7ce9f18a2992f545b19245043d405..9eb50fbd8ae06fa6b34fad0ef47e2fb51ef5e031 100644 (file)
@@ -77,14 +77,10 @@ SOCK_Destructor(SocketClass *self)
 {
    if (self->socket != -1)
    {
+       SOCK_put_char(self, 'X');
+       SOCK_flush_output(self);
        if (!shutdown(self->socket, 2)) /* no sends or receives */
-       {
-#ifdef DOES_NOT_WORK
-           SOCK_put_char(self, 'X');
-           SOCK_flush_output(self);
-#endif
            closesocket(self->socket);
-       }
    }
 
    if (self->buffer_in)