From 2f27e25968896d5b9df3d448597d39e827e8d510 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 18 Aug 2023 12:18:10 +0200 Subject: [PATCH] fix freeze that happens when calling WriteTo() against a closed channel --- node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.go b/node.go index 697fa3744..ae45bbf2a 100644 --- a/node.go +++ b/node.go @@ -266,7 +266,7 @@ outer: case req := <-n.writeTo: if _, ok := n.channels[req.ch]; !ok { - return + continue } var err error