From 42b4764700d6d165fd48824e7ad800d36a016a28 Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 22 Jan 2016 17:56:19 +0100 Subject: [PATCH] revert lock change --- proxy/vmess/inbound/inbound.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }