5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-12-22 18:45:40 +00:00

Don't tightloop when a listener can no longer accept connections

This commit is contained in:
Neil Alexander 2023-10-17 21:41:21 +01:00
parent 74ca02edfd
commit bcd80b043f
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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()