Skip to content

Commit a1ba1ca

Browse files
authored
Merge pull request #441 from jeremyevans/avoid-unnecessary-thread-pool
Avoid creating an unnecessary thread pool
2 parents 84bb052 + 98dcc9d commit a1ba1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rake/application.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def run_with_threads
124124

125125
yield
126126

127-
thread_pool.join
127+
thread_pool.join if defined?(@thread_pool)
128128
if options.job_stats
129129
stats = thread_pool.statistics
130130
puts "Maximum active threads: #{stats[:max_active_threads]} + main"

0 commit comments

Comments
 (0)