mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-12-30 14:05:26 -05:00
fixes for mutex usage
This commit is contained in:
@@ -56,7 +56,9 @@ func (this *VMessInboundHandler) Listen(port v2net.Port) error {
|
||||
return err
|
||||
}
|
||||
this.accepting = true
|
||||
this.Lock()
|
||||
this.listener = listener
|
||||
this.Unlock()
|
||||
go this.AcceptConnections()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user