diff options
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r-- | lib/rainbows/ev_core.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb index aa0b155..d8304a3 100644 --- a/lib/rainbows/ev_core.rb +++ b/lib/rainbows/ev_core.rb @@ -19,12 +19,10 @@ module Rainbows # graceful exit, like SIGQUIT def quit - @deferred_bodies.clear @state = :close end def handle_error(e) - quit msg = case e when EOFError,Errno::ECONNRESET,Errno::EPIPE,Errno::EINVAL,Errno::EBADF ERROR_500_RESPONSE @@ -36,6 +34,7 @@ module Rainbows ERROR_500_RESPONSE end write(msg) + quit end def tmpio |