1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-27 09:55:22 +00:00

don't release locker in abstract mode

This commit is contained in:
Darien Raymond 2018-04-09 17:18:48 +02:00
parent a320196b77
commit 38de82a5d3
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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()
}