about summary refs log tree commit homepage
path: root/lib/rainbows/coolio/thread_client.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rainbows/coolio/thread_client.rb')
-rw-r--r--lib/rainbows/coolio/thread_client.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/rainbows/coolio/thread_client.rb b/lib/rainbows/coolio/thread_client.rb
index 6cd77b9..b837115 100644
--- a/lib/rainbows/coolio/thread_client.rb
+++ b/lib/rainbows/coolio/thread_client.rb
@@ -14,9 +14,7 @@ class Rainbows::Coolio::ThreadClient < Rainbows::Coolio::Client
 
   # this is only called in the master thread
   def response_write(response)
-    coolio_write_response(response, alive = @hp.next?)
-    return quit unless alive && :close != @state
-    @state = :headers
+    ev_write_response(*response, @hp.next?)
     rescue => e
       handle_error(e)
   end