Skip to content

Commit

Permalink
Only wake up lexer when we're done parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Drvi committed Jun 29, 2023
1 parent a23bd9b commit 38928f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TaskCounters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function dec!(t::TaskCounter, n::Int=1)
Base.@lock t begin
@assert t.n >= n "Trying decrement a `TaskCounter` past zero, `$(t.n)` -> `$(t.n - n)`"
t.n -= n
notify(t.cond)
(t.n == 0) && notify(t.cond)
end
return nothing
end
Expand Down

0 comments on commit 38928f3

Please sign in to comment.