소스 검색

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