Skip to content

Commit

Permalink
small thing
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Nov 14, 2023
1 parent c63c5d3 commit 7b4d801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion seb.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (w *worker) publish() {
// if block window passes, drop on floor
select {
case w.out <- n:
if !wait.Stop() {
if !wait.Stop() && len(wait.C) > 0 {
<-wait.C
}
case <-wait.C:
Expand Down

0 comments on commit 7b4d801

Please sign in to comment.