File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ SOCK_Destructor(SocketClass *self)
7979 {
8080 SOCK_put_char (self , 'X' );
8181 SOCK_flush_output (self );
82- if (!shutdown (self -> socket , 2 )) /* no sends or receives */
83- closesocket (self -> socket );
82+ closesocket (self -> socket );
8483 }
8584
8685 if (self -> buffer_in )
@@ -291,9 +290,11 @@ SOCK_get_next_byte(SocketClass *self)
291290 /* reload the buffer */
292291
293292 self -> buffer_read_in = 0 ;
294- self -> buffer_filled_in = recv (self -> socket , (char * ) self -> buffer_in , globals .socket_buffersize , 0 );
293+ self -> buffer_filled_in = recv (self -> socket , (char * ) self -> buffer_in ,
294+ globals .socket_buffersize , 0 );
295295
296- mylog ("read %d, global_socket_buffersize=%d\n" , self -> buffer_filled_in , globals .socket_buffersize );
296+ mylog ("read %d, global_socket_buffersize=%d\n" ,
297+ self -> buffer_filled_in , globals .socket_buffersize );
297298
298299 if (self -> buffer_filled_in == -1 )
299300 {
You can’t perform that action at this time.
0 commit comments