From aebbd4bb4d2bb5a461d5ec70dd27e5cb832d6869 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 18 Sep 2012 15:22:13 -0700 Subject: No need to defensively work jobs in another thread --- activesupport/lib/active_support/queueing.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/queueing.rb b/activesupport/lib/active_support/queueing.rb index d36b5c17a8..0a4ab05b78 100644 --- a/activesupport/lib/active_support/queueing.rb +++ b/activesupport/lib/active_support/queueing.rb @@ -110,7 +110,7 @@ module ActiveSupport end def drain - Thread.new { run(@queue.pop) until @queue.empty? }.join + run(@queue.pop) until @queue.empty? end def consume -- cgit v1.2.3