about summary refs log tree commit homepage
path: root/lib/rainbows/ev_core.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-02 01:09:40 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-02 10:18:57 -0800
commit9c08e67562db122a4c9958d9343eae29690c16e0 (patch)
treecaf870db86e5933b6f253b34006718f61a6b666f /lib/rainbows/ev_core.rb
parentdcd4fce91aa44c5026e9ca3afd8350f53fe1cb0f (diff)
downloadrainbows-9c08e67562db122a4c9958d9343eae29690c16e0.tar.gz
Just in case something goes wrong with the write
or the logger, make sure we've triggered a quit.
Diffstat (limited to 'lib/rainbows/ev_core.rb')
-rw-r--r--lib/rainbows/ev_core.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/ev_core.rb b/lib/rainbows/ev_core.rb
index a19648e..f90e1e1 100644
--- a/lib/rainbows/ev_core.rb
+++ b/lib/rainbows/ev_core.rb
@@ -35,7 +35,8 @@ module Rainbows
         ERROR_500_RESPONSE
       end
       write(msg)
-      quit
+      ensure
+        quit
     end
 
     # TeeInput doesn't map too well to this right now...