mirror of https://github.com/v2ray/v2ray-core
				
				
				
			fix locking in vmess inbound
							parent
							
								
									d8f29f4b5e
								
							
						
					
					
						commit
						795681c288
					
				| 
						 | 
				
			
			@ -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()
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue