Skip to content

Commit

Permalink
Fix UDPSocket not listening to writeable events
Browse files Browse the repository at this point in the history
  • Loading branch information
ergl committed Jan 24, 2021
1 parent a5e74c5 commit 733dbfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/net/udp_socket.pony
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ actor UDPSocket
_complete_reads(arg)
_pending_reads()
end
else

if AsioEvent.writeable(flags) then
// On Unix, we now know that the socket is not busy anymore, we can
// start sending again.
Expand All @@ -402,7 +402,7 @@ actor UDPSocket
end
_complete_writes()
end

else
ifdef windows then
if AsioEvent.readable(flags) then
_readable = false
Expand Down

0 comments on commit 733dbfd

Please sign in to comment.