Skip to content

Commit

Permalink
checking @busy_workers.size is sufficient, and the other check was no…
Browse files Browse the repository at this point in the history
…t correct
  • Loading branch information
joenoon committed Jul 15, 2012
1 parent 792c93c commit 4a468dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/girl_friday/work_queue.rb
Expand Up @@ -78,7 +78,7 @@ def shutdown(&block)
end

def working?
@busy_workers.size > 0 || @total_queued != @total_processed + @total_errors + @persister.size
@busy_workers.size > 0
end

private
Expand Down

0 comments on commit 4a468dc

Please sign in to comment.