From 43b81688f6146f71e1a13d8b17a475dc2dce2cfe Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 5 Aug 2019 13:26:10 +0300 Subject: [PATCH] socket: WSACleanup should not be called on socket close --- vlib/net/socket.v | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vlib/net/socket.v b/vlib/net/socket.v index 093323937c..795917de8c 100644 --- a/vlib/net/socket.v +++ b/vlib/net/socket.v @@ -227,11 +227,6 @@ pub fn (s Socket) recv(bufsize int) byteptr { // shutdown and close socket pub fn (s Socket) close() ?int { - // WinSock - $if windows { - C.WSACleanup() - } - mut shutdown_res := 0 $if windows { shutdown_res = C.shutdown(s.sockfd, SD_BOTH)