We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cef3e5 + b85c520 commit 0cc4caaCopy full SHA for 0cc4caa
mrbgems/mruby-socket/mrblib/socket.rb
@@ -701,13 +701,11 @@ def connect(host, port)
701
# data, addr = sock.recvfrom_nonblock(1024)
702
#
703
def recvfrom_nonblock(*args)
704
- s = self
705
begin
706
self._setnonblock(true)
707
self.recvfrom(*args)
708
ensure
709
- # XXX: self is a SystemcallException here! (should be bug)
710
- s._setnonblock(false)
+ self._setnonblock(false)
711
end
712
713
0 commit comments