We should not close the TCP connection, since the TLS wrapper will already close it on the lines above

This commit is contained in:
Ola Bini 2019-12-20 16:11:46 +00:00
parent 4db50b4fa3
commit d82d53c605
No known key found for this signature in database
GPG key ID: 6786A150F6A2B28F

View file

@ -1553,11 +1553,6 @@ func (server *Server) Stop() (err error) {
return err return err
} }
err = server.tcpl.Close()
if err != nil {
return err
}
// Close the UDP connection // Close the UDP connection
err = server.udpconn.Close() err = server.udpconn.Close()
if err != nil { if err != nil {