From 32da784549a3b9ef60e5d2236bcde37ca9f53f4e Mon Sep 17 00:00:00 2001 From: v2ray Date: Sat, 2 Jul 2016 22:06:37 +0200 Subject: [PATCH] remove deadlock --- transport/internet/kcp/receiving.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/transport/internet/kcp/receiving.go b/transport/internet/kcp/receiving.go index 8320a976..18dfaa15 100644 --- a/transport/internet/kcp/receiving.go +++ b/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) }