Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cc818a8

Browse files
committed
Move X packet before shutdown().
1 parent 3152ef6 commit cc818a8

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/interfaces/odbc/socket.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,10 @@ SOCK_Destructor(SocketClass *self)
7777
{
7878
if (self->socket != -1)
7979
{
80+
SOCK_put_char(self, 'X');
81+
SOCK_flush_output(self);
8082
if (!shutdown(self->socket, 2)) /* no sends or receives */
81-
{
82-
#ifdef DOES_NOT_WORK
83-
SOCK_put_char(self, 'X');
84-
SOCK_flush_output(self);
85-
#endif
8683
closesocket(self->socket);
87-
}
8884
}
8985

9086
if (self->buffer_in)

0 commit comments

Comments
 (0)