浏览代码

remove deadlock

v2ray 9 年之前
父节点
当前提交
32da784549
共有 1 个文件被更改,包括 0 次插入3 次删除
  1. 0 3
      transport/internet/kcp/receiving.go

+ 0 - 3
transport/internet/kcp/receiving.go

@@ -274,9 +274,6 @@ func (this *ReceivingWorker) DumpWindow() {
 }
 
 func (this *ReceivingWorker) Read(b []byte) (int, error) {
-	this.Lock()
-	defer this.Unlock()
-
 	return this.queue.Read(b)
 }