瀏覽代碼

revert lock change

v2ray 9 年之前
父節點
當前提交
42b4764700
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      proxy/vmess/inbound/inbound.go

+ 1 - 1
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()
 	}