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