From 889da081e87c0baf55ae45a3095e07184e6418d7 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 26 Apr 2009 00:04:13 -0700 Subject: Small cleanup No need to use ensure since process_client will handle errors regardless. And if not, there's a bug on our side that needs to fixed. --- lib/unicorn.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 54e2bc0..05866df 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -504,13 +504,12 @@ module Unicorn next end process_client(client) + alive.chmod(nr += 1) rescue Errno::ECONNABORTED # client closed the socket even before accept client.close rescue nil - ensure - alive.chmod(nr += 1) if client - break if nr < 0 end + break if nr < 0 end client = nil -- cgit v1.2.3-24-ge0c7