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 3ada7bf..e6db2bd 100644
--- a/lib/rainbows/coolio/thread_client.rb
+++ b/lib/rainbows/coolio/thread_client.rb
@@ -14,10 +14,8 @@ class Rainbows::Coolio::ThreadClient < Rainbows::Coolio::Client
 
   # this is only called in the master thread
   def response_write(response)
-    alive = @hp.next? && G.alive
-    coolio_write_response(response, alive)
+    coolio_write_response(response, alive = @hp.next?)
     return quit unless alive && :close != @state
-
     @state = :headers
     rescue => e
       handle_error(e)