about summary refs log tree commit homepage
path: root/lib/rainbows/fiber
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-03-15 21:44:14 +0000
committerEric Wong <normalperson@yhbt.net>2011-03-15 21:44:14 +0000
commitee9e7886d9101a6376d268a931c645026e9f6b0f (patch)
treedf646a2645039a04869b84ec3c670deb0409d67b /lib/rainbows/fiber
parente9cb419a7887fce13fc7b185177c87fc45279383 (diff)
downloadrainbows-ee9e7886d9101a6376d268a931c645026e9f6b0f.tar.gz
Fortunately it's a deprecated class that nobody
uses...
Diffstat (limited to 'lib/rainbows/fiber')
-rw-r--r--lib/rainbows/fiber/io.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/fiber/io.rb b/lib/rainbows/fiber/io.rb
index 4c7864d..da377d0 100644
--- a/lib/rainbows/fiber/io.rb
+++ b/lib/rainbows/fiber/io.rb
@@ -45,7 +45,7 @@ class Rainbows::Fiber::IO
   end
 
   def write(buf)
-    case rv = Kgio.trywrite(buf)
+    case rv = Kgio.trywrite(@to_io, buf)
     when String
       buf = rv
     when :wait_writable