Fix close quic.Listener

This commit is contained in:
世界
2023-07-07 12:43:22 +08:00
parent 17cc9cba83
commit d4b6766e4e
2 changed files with 2 additions and 2 deletions

View File

@@ -94,5 +94,5 @@ func (s *Server) streamAcceptLoop(conn quic.Connection) error {
}
func (s *Server) Close() error {
return common.Close(s.udpListener, s.quicListener)
return common.Close(s.udpListener, common.PtrOrNil(s.quicListener))
}