Skip to content

Commit

Permalink
fix: Missing channel close in QueuedChannel
Browse files Browse the repository at this point in the history
  • Loading branch information
LBeernaertProton authored and jameshoulahan committed Sep 8, 2022
1 parent 7314769 commit 12c698d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/queue/queued_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ func NewQueuedChannel[T any](channelBufferSize int, capacity int) *QueuedChannel
}

go func() {
defer close(queue.ch)

for {
item, ok := queue.queue.Pop()
if !ok {
Expand Down

0 comments on commit 12c698d

Please sign in to comment.