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)