Skip to content

Commit

Permalink
lock bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph Ortner committed Jun 24, 2023
1 parent 4c0cda2 commit 31cfd8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assemble.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ function mt_assemble(data::AbstractVector{<:AbstractData}, basis)

while next <= length(packets)
# retrieve the next packet
lock(_lock)
if next > length(packets)
break
end
lock(_lock)
p = packets[next]
next += 1
unlock(_lock)
Expand Down

0 comments on commit 31cfd8f

Please sign in to comment.