Forráskód Böngészése

revert lock change

v2ray 9 éve
szülő
commit
42b4764700
1 módosított fájl, 1 hozzáadás és 1 törlés
  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()
 	}