From e0c33c583c5b4d2a4661edb6c41d6a60b44dae9d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 17 Oct 2009 22:42:55 -0700 Subject: Fix graceful shutdown handling of Thread* models harder I need better tests for graceful shutdown... --- lib/rainbows/base.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows/base.rb') 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 -- cgit v1.2.3-24-ge0c7