aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2012-09-18 15:22:13 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2012-09-18 15:22:24 -0700
commitaebbd4bb4d2bb5a461d5ec70dd27e5cb832d6869 (patch)
treeed8949cc1ec5c35b892252f47cd2276b23d375a1 /activesupport/lib/active_support
parent96e713b02bc46859cef31c20e506fdccb397112f (diff)
downloadrails-aebbd4bb4d2bb5a461d5ec70dd27e5cb832d6869.tar.gz
rails-aebbd4bb4d2bb5a461d5ec70dd27e5cb832d6869.tar.bz2
rails-aebbd4bb4d2bb5a461d5ec70dd27e5cb832d6869.zip
No need to defensively work jobs in another thread
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r--activesupport/lib/active_support/queueing.rb2
1 files changed, 1 insertions, 1 deletions
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