mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-02-20 23:47:21 -05:00
don't release locker in abstract mode
This commit is contained in:
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…
x
Reference in New Issue
Block a user