diff --git a/nbase/nbase_winunix.c b/nbase/nbase_winunix.c index bd3f805c0..2b8678419 100644 --- a/nbase/nbase_winunix.c +++ b/nbase/nbase_winunix.c @@ -115,8 +115,6 @@ static DWORD WINAPI win_stdin_thread_func(void *data) { closesocket(tdata->socket_l); tdata->socket_l = INVALID_SOCKET; - if (SOCKET_ERROR == shutdown(socket_w, SD_RECEIVE)) - goto ThreadCleanup; for (;;) { if (ReadFile(tdata->stdin_handle, buffer, sizeof(buffer), &n, NULL) == 0) @@ -236,10 +234,6 @@ int win_stdin_start_thread(void) { //fprintf(stderr, "connect error: %d", socket_errno()); break; } - if (SOCKET_ERROR == shutdown(socket_r, SD_SEND)) { - //fprintf(stderr, "shutdown error: %d", socket_errno()); - break; - } /* Set the stdin handle to read from the socket. */ if (SetStdHandle(STD_INPUT_HANDLE, (HANDLE) socket_r) == 0) {