Update event loop sendto error to SendToError

This commit is contained in:
frmdstryr 2020-12-27 09:10:43 -05:00 committed by Veikka Tuominen
parent d96f5b38a3
commit dd86e9d78c

View File

@ -1262,7 +1262,7 @@ pub const Loop = struct {
flags: u32,
dest_addr: ?*const os.sockaddr,
addrlen: os.socklen_t,
) os.SendError!usize {
) os.SendToError!usize {
while (true) {
return os.sendto(sockfd, buf, flags, dest_addr, addrlen) catch |err| switch (err) {
error.WouldBlock => {