From ce5bb179bcd0ac2921da636375cb3821b79c428c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 17 Oct 2009 22:42:55 -0700 Subject: Rev: simplification to error handling on_write_complete has no chance of being called there so remove the unnecessary ensure statement --- lib/rainbows/rev.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rainbows/rev.rb b/lib/rainbows/rev.rb index 8381975..7e5ca27 100644 --- a/lib/rainbows/rev.rb +++ b/lib/rainbows/rev.rb @@ -55,6 +55,7 @@ module Rainbows end def handle_error(e) + @state = :close msg = case e when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF ERROR_500_RESPONSE @@ -66,8 +67,6 @@ module Rainbows ERROR_500_RESPONSE end write(msg) - ensure - @state = :close end def app_call -- cgit v1.2.3-24-ge0c7