summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHemant Kumar <gethemant@gmail.com>2013-09-03 11:16:59 +0530
committerHemant Kumar <gethemant@gmail.com>2013-09-03 11:16:59 +0530
commit487862b3b777f50d4fa34451783b3deb78c22b3b (patch)
treec0b507bc797e0ba8d6e82fe544245762fbe466d7
parent541aafe3f68c2052e1893a58c9e0332ec75129b9 (diff)
downloadbundler-fix-thread-safety-parallel-install.tar.gz
Bring in fix introduced in PR#2622fix-thread-safety-parallel-install
Make sure thread index is passed when calling installer proc
-rw-r--r--lib/bundler/parallel_workers/thread_worker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/parallel_workers/thread_worker.rb b/lib/bundler/parallel_workers/thread_worker.rb
index 764b898e43..ef2c9ecd18 100644
--- a/lib/bundler/parallel_workers/thread_worker.rb
+++ b/lib/bundler/parallel_workers/thread_worker.rb
@@ -16,7 +16,7 @@ module Bundler
obj = @request_queue.deq
break if obj.equal? POISON
begin
- @response_queue.enq func.call(obj)
+ @response_queue.enq func.call(obj, i)
rescue Exception => e
@response_queue.enq(WrappedException.new(e))
end