Permalink
Browse files

always close sockets and ZMQ context when exiting main loop

  • Loading branch information...
1 parent 8be975e commit 449af21994c4996907c44ade4b98bbf6e77ccbc3 @martinrehfeld committed Mar 1, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/rack/handler/mongrel2.rb
@@ -58,6 +58,8 @@ def self.run(app, options = {})
conn.close
exit
return
+ ensure
+ conn.close
end
end #def self.run

0 comments on commit 449af21

Please sign in to comment.