Skip to content

Commit

Permalink
remove unneeded nil check for new connections in the server (#4260)
Browse files Browse the repository at this point in the history
  • Loading branch information
marten-seemann committed Jan 24, 2024
1 parent a968e25 commit 2a7a11f
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 2a7a11f

Please sign in to comment.