From 795681c288cbbb9be28794bdd73aa7393e171ab5 Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 22 Jan 2016 16:50:31 +0100 Subject: [PATCH] fix locking in vmess inbound --- 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 7a12cfc09..a4d1dda5f 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.listener.Close() this.Lock() + this.listener.Close() this.listener = nil this.Unlock() }