ci: fix TcpConn.set_blocking on windows

pull/11099/head
Delyan Angelov 2021-08-07 23:27:25 +03:00
parent b22c335496
commit e32c65c322
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ pub fn (mut con TcpConn) set_blocking(state bool) ? {
if !con.is_blocking { if !con.is_blocking {
t = 1 t = 1
} }
socket_error(C.ioctlsocket(handle, fionbio, &t)) ? socket_error(C.ioctlsocket(con.sock.handle, fionbio, &t)) ?
} $else { } $else {
mut flags := C.fcntl(con.sock.handle, C.F_GETFL, 0) mut flags := C.fcntl(con.sock.handle, C.F_GETFL, 0)
if state { if state {