When Accept gives an error, don't use the Conn

This commit is contained in:
Matt Joiner 2018-07-27 10:18:56 +10:00
parent e8a4a52e00
commit 81e6061a53
1 changed files with 1 additions and 0 deletions

View File

@ -410,6 +410,7 @@ func (cl *Client) acceptConnections(l net.Listener) {
} }
if err != nil { if err != nil {
log.Printf("error accepting connection: %s", err) log.Printf("error accepting connection: %s", err)
continue
} }
go func() { go func() {
if reject { if reject {