fix locking in vmess inbound

pull/73/head
v2ray 2016-01-22 16:50:31 +01:00
parent d8f29f4b5e
commit 795681c288
1 changed files with 1 additions and 1 deletions

View File

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