Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Don't rescue ThreadError in FileThreadPool #56

Merged
merged 1 commit into from
Dec 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions lib/cc/engine/analyzers/file_thread_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ def run(&block)

@workers = thread_count.times.map do
Thread.new do
begin
while item = queue.pop(true)
yield item
end
rescue ThreadError
while !queue.empty? && (item = queue.pop(true))
yield item
end
end
end
Expand Down