Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CommonMethods pass an IO object directly

  • Loading branch information...
commit 76f3ebe47dcb626b504af3743f3fde16a05674eb 1 parent 69a76db
@tarcieri tarcieri authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/celluloid/io/common_methods.rb
View
4 lib/celluloid/io/common_methods.rb
@@ -34,7 +34,7 @@ def readpartial(length, buffer = nil)
read_nonblock(length, buffer)
rescue ::IO::WaitReadable
# Le sigh, exceptions for control flow ;(
- __get_actor.wait_readable self
+ __get_actor.wait_readable self.to_io
retry
end
@@ -49,7 +49,7 @@ def write(string)
begin
written = write_nonblock(string)
rescue ::IO::WaitWritable
- __get_actor.wait_writable self
+ __get_actor.wait_writable self.to_io
retry
rescue EOFError
return total_written
Please sign in to comment.
Something went wrong with that request. Please try again.