diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-03 00:05:31 +0200 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-04-03 00:52:58 +0200 |
| commit | 3a0df800664105f5944ad9e0230debe3a3207969 (patch) | |
| tree | f2ac5c150bae1b0fc62bf6381bded50bfad5b6bf /core/net/socket.odin | |
| parent | 21fcf7c8744260c904e7040bdb1d550a0931aa3e (diff) | |
correct newly found vets
Diffstat (limited to 'core/net/socket.odin')
| -rw-r--r-- | core/net/socket.odin | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/net/socket.odin b/core/net/socket.odin index 1bfa52257..5f137401e 100644 --- a/core/net/socket.odin +++ b/core/net/socket.odin @@ -161,11 +161,10 @@ recv_any :: proc(socket: Any_Socket, buf: []byte) -> ( ) { switch socktype in socket { case TCP_Socket: - bytes_read, err := recv_tcp(socktype, buf) - return bytes_read, nil, err + bytes_read, err = recv_tcp(socktype, buf) + return case UDP_Socket: - bytes_read, endpoint, err := recv_udp(socktype, buf) - return bytes_read, endpoint, err + return recv_udp(socktype, buf) case: panic("Not supported") } } |