1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

socket: WSACleanup should not be called on socket close

This commit is contained in:
Vitaly Takmazov 2019-08-05 13:26:10 +03:00 committed by Alexander Medvednikov
parent 3f3b7665ca
commit 43b81688f6

View File

@ -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)