Sfoglia il codice sorgente

fix locking in vmess inbound

v2ray 9 anni fa
parent
commit
795681c288
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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.listener.Close()
 		this.Lock()
+		this.listener.Close()
 		this.listener = nil
 		this.Unlock()
 	}