Skip to content

Commit

Permalink
Reduce hard timeout wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-at-intercom committed May 25, 2016
1 parent 9f38980 commit 4584f07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/shoryuken/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ def processor_done(queue, processor)
else
@ready << processor
end

return after(0) { @finished.signal } if @busy.empty? && stopped?
end
end

Expand All @@ -84,6 +86,8 @@ def processor_died(processor, reason)
unless stopped?
@ready << build_processor
end

return after(0) { @finished.signal } if @busy.empty? && stopped?
end
end

Expand Down

0 comments on commit 4584f07

Please sign in to comment.