diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:55 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-17 22:42:55 -0700 |
commit | e0c33c583c5b4d2a4661edb6c41d6a60b44dae9d (patch) | |
tree | 6c0f7ffb273e2d1b16009e7631323a781797b541 /lib/rainbows/base.rb | |
parent | 031127b1d047d05be7a2ec8af7480d02e9bbdd69 (diff) | |
download | rainbows-e0c33c583c5b4d2a4661edb6c41d6a60b44dae9d.tar.gz |
I need better tests for graceful shutdown...
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r-- | lib/rainbows/base.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index f24de31..3f9db96 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -19,6 +19,7 @@ module Rainbows # TODO: migrate into Unicorn::HttpServer def listen_loop_error(e) + return if HttpServer::LISTENERS.first.nil? || IOError === e logger.error "Unhandled listen loop exception #{e.inspect}." logger.error e.backtrace.join("\n") end |