fixes for mutex usage

This commit is contained in:
v2ray committed 2016-01-04 08:40:24 +01:00
1 parent 59a5f832f6
commit 4271e619fe
4 files changed
+10

No files matched your search

+2
View File
@@ -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
}