forked from quic-go/quic-go
make sure the server is stopped before closing all server sessions
This commit is contained in:
@@ -250,7 +250,7 @@ func (h *packetHandlerMap) CloseServer() {
|
||||
wg.Wait()
|
||||
}
|
||||
|
||||
// Destroy the underlying connection and wait until listen() has returned.
|
||||
// Destroy closes the underlying connection and waits until listen() has returned.
|
||||
// It does not close active sessions.
|
||||
func (h *packetHandlerMap) Destroy() error {
|
||||
if err := h.conn.Close(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user