summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-12-19 03:39:58 +0000
committerEric Wong <normalperson@yhbt.net>2012-12-19 03:39:58 +0000
commit28eaf3e766f5dddc6ca073a155b8005afdaecfba (patch)
tree265e90763535c02fd19c307475399d8305ed56e1
parent42bf1f6de55b82af46fd8255453036c6582b7f19 (diff)
-rw-r--r--lib/rainbows/event_machine/client.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/rainbows/event_machine/client.rb b/lib/rainbows/event_machine/client.rb
index f3c2070..26f0dbd 100644
--- a/lib/rainbows/event_machine/client.rb
+++ b/lib/rainbows/event_machine/client.rb
@@ -41,8 +41,11 @@ class Rainbows::EventMachine::Client < EM::Connection
       APP.call(@env.merge!(RACK_DEFAULTS))
     }
 
-    (nil == status || -1 == status) ? @deferred = true :
+    if (nil == status || -1 == status)
+      @deferred = true
+    else
       ev_write_response(status, headers, body, @hp.next?)
+    end
   end
 
   def deferred_errback(orig_body)