Navigation Menu

Skip to content

Commit

Permalink
Shutdown slices parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 21, 2014
1 parent ecbf85a commit 0221b06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/droonga/farm.rb
Expand Up @@ -42,9 +42,13 @@ def start
end

def shutdown
threads = []
@slices.each_value do |slice|
slice.shutdown
threads << Thread.new do
slice.shutdown
end
end
threads.each(&:join)
end

def process(slice_name, message)
Expand Down

0 comments on commit 0221b06

Please sign in to comment.