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:
parent
3f3b7665ca
commit
43b81688f6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user