Explorar el Código

remove deadlock

v2ray hace 9 años
padre
commit
32da784549
Se han modificado 1 ficheros con 0 adiciones y 3 borrados
  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)
 }