Skip to content

Commit

Permalink
remove unneeded nil check for new connections in the server (quic-go#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann authored and mgjeong committed Feb 13, 2024
1 parent 29c1460 commit 659b450
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 659b450

Please sign in to comment.