Skip to content

Commit

Permalink
Use dispatch_later instead of after(1) { dispatch }
Browse files Browse the repository at this point in the history
  • Loading branch information
mariokostelac committed Dec 13, 2016
1 parent c582f89 commit 37062ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shoryuken/manager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def dispatch
queue = polling_strategy.next_queue
if queue.nil?
logger.debug { 'Pausing fetcher, because all queues are paused' }
after(1) { dispatch }
dispatch_later
return
end

Expand Down

0 comments on commit 37062ab

Please sign in to comment.