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 {
log.Printf("error accepting connection: %s", err)
continue
}
go func() {
if reject {