diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-07-19 10:09:59 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-07-19 17:04:29 -0700 |
commit | 7e2758692d70090b193f73212ae9cebc8fdcb7cb (patch) | |
tree | 784b3325533b01a1d8ae6eb29f89360e5e20b7eb /lib/rainbows/event_machine.rb | |
parent | 5451f0c20d2382ac126e923179c096357d20cf0a (diff) | |
download | rainbows-7e2758692d70090b193f73212ae9cebc8fdcb7cb.tar.gz |
Extraneous returns are harder to follow.
Diffstat (limited to 'lib/rainbows/event_machine.rb')
-rw-r--r-- | lib/rainbows/event_machine.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/rainbows/event_machine.rb b/lib/rainbows/event_machine.rb index 9cfe481..3da6565 100644 --- a/lib/rainbows/event_machine.rb +++ b/lib/rainbows/event_machine.rb @@ -112,11 +112,8 @@ module Rainbows body.callback { quit } body.errback { quit } # async response, this could be a trickle as is in comet-style apps - if headers - headers[CONNECTION] = CLOSE - write(response_header(status, headers)) - end - return write_body_each(self, body) + headers[CONNECTION] = CLOSE if headers + alive = true elsif body.respond_to?(:to_path) io = body_to_io(body) st = io.stat |