Skip to content

Commit

Permalink
Don't tightloop when a listener can no longer accept connections
Browse files Browse the repository at this point in the history
  • Loading branch information
neilalexander committed Oct 17, 2023
1 parent 74ca02e commit bcd80b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit bcd80b0

Please sign in to comment.