mirror of https://github.com/v2ray/v2ray-core
don't release locker in abstract mode
parent
a320196b77
commit
38de82a5d3
|
@ -68,7 +68,9 @@ func (ln *Listener) Addr() net.Addr {
|
|||
}
|
||||
|
||||
func (ln *Listener) Close() error {
|
||||
ln.locker.Release()
|
||||
if ln.locker != nil {
|
||||
ln.locker.Release()
|
||||
}
|
||||
return ln.ln.Close()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue