about summary refs log tree commit homepage
path: root/lib/rainbows/writer_thread_spawn.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/writer_thread_spawn.rb')
-rw-r--r--lib/rainbows/writer_thread_spawn.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/rainbows/writer_thread_spawn.rb b/lib/rainbows/writer_thread_spawn.rb
index 95a04c0..0a8988f 100644
--- a/lib/rainbows/writer_thread_spawn.rb
+++ b/lib/rainbows/writer_thread_spawn.rb
@@ -88,12 +88,8 @@ module Rainbows
       end
     end
 
-    if IO.respond_to?(:copy_stream)
-      undef_method :write_body
-
-      def write_body(my_sock, body)
-        my_sock.write_body(body)
-      end
+    def write_body(my_sock, body)
+      my_sock.write_body(body)
     end
 
     def process_client(client)