From bcd80b043ff6cd11751c784fe19dbf4b1e270ff4 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 17 Oct 2023 21:41:21 +0100 Subject: [PATCH] Don't tightloop when a listener can no longer accept connections --- src/core/link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/link.go b/src/core/link.go index bc4f191b..4d51c03a 100644 --- a/src/core/link.go +++ b/src/core/link.go @@ -374,7 +374,7 @@ func (l *links) listen(u *url.URL, sintf string) (*Listener, error) { for { conn, err := listener.Accept() if err != nil { - continue + return } go func(conn net.Conn) { defer conn.Close()