From 55f90939eae4d6eb64822fd3590f694418396510 Mon Sep 17 00:00:00 2001 From: Dylan Thacker-Smith Date: Fri, 20 Jun 2014 21:13:02 -0400 Subject: Duplicate array of connections before closing them on thin server stop. --- lib/dashing/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/dashing/app.rb b/lib/dashing/app.rb index 800f4c8..921bf9c 100644 --- a/lib/dashing/app.rb +++ b/lib/dashing/app.rb @@ -122,7 +122,7 @@ end Thin::Server.class_eval do def stop_with_connection_closing - Sinatra::Application.settings.connections.each(&:close) + Sinatra::Application.settings.connections.dup.each(&:close) stop_without_connection_closing end -- cgit v1.2.3