Explorar el Código

revert lock change

v2ray hace 9 años
padre
commit
42b4764700
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()
 	}