diff --git a/proxy/vmess/inbound/inbound.go b/proxy/vmess/inbound/inbound.go index a4d1dda5f..7a12cfc09 100644 --- a/proxy/vmess/inbound/inbound.go +++ b/proxy/vmess/inbound/inbound.go @@ -38,8 +38,8 @@ func (this *VMessInboundHandler) Port() v2net.Port { func (this *VMessInboundHandler) Close() { this.accepting = false if this.listener != nil { - this.Lock() this.listener.Close() + this.Lock() this.listener = nil this.Unlock() }