mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-11-22 08:31:30 +00:00
Fix close quic.Listener
This commit is contained in:
parent
af79378734
commit
230e8f895d
|
@ -332,7 +332,7 @@ func (h *Hysteria) Close() error {
|
|||
h.udpAccess.Unlock()
|
||||
return common.Close(
|
||||
&h.myInboundAdapter,
|
||||
h.listener,
|
||||
common.PtrOrNil(h.listener),
|
||||
h.tlsConfig,
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue