Skip to content

Commit 24e9f28

Browse files
committed
previewchan !== nothing && nthreads() == 1 can happen
1 parent f4507c6 commit 24e9f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ReTest.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ function retest(args::Union{Module,AbstractString,Regex}...;
638638
end # worker = @task begin ...
639639

640640
try
641-
if previewchan !== nothing # then nthreads() > 1
641+
if previewchan !== nothing && nthreads() > 1
642642
# we try to keep thread #1 free of heavy work, so that the previewer stays
643643
# responsive
644644
tid = rand(2:nthreads())

0 commit comments

Comments
 (0)