Skip to content

Commit

Permalink
fix freeze that happens when calling WriteTo() against a closed channel
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Aug 18, 2023
1 parent 0e8f34f commit 2f27e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ outer:

case req := <-n.writeTo:
if _, ok := n.channels[req.ch]; !ok {
return
continue
}

var err error
Expand Down

0 comments on commit 2f27e25

Please sign in to comment.