forked from quic-go/quic-go
rename packetHandlerMap.Close() to Destroy()
This commit is contained in:
@@ -185,8 +185,9 @@ func (h *packetHandlerMap) CloseServer() {
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
// Close the underlying connection and wait until listen() has returned.
|
||||
func (h *packetHandlerMap) Close() error {
|
||||
// Destroy the underlying connection and wait until listen() has returned.
|
||||
// It does not close active sessions.
|
||||
func (h *packetHandlerMap) Destroy() error {
|
||||
if err := h.conn.Close(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user