remove unneeded nil check for new connections in the server (#4260)

This commit is contained in:
Marten Seemann 2024-01-23 21:45:03 -08:00 committed by GitHub
parent a968e254a1
commit 2a7a11f4c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -718,10 +718,6 @@ func (s *baseServer) handleInitialImpl(p receivedPacket, hdr *wire.Header) error
conn.closeWithTransportError(ConnectionRefused)
}
}()
if conn == nil {
p.buffer.Release()
return nil
}
return nil
}