From ed780951aa9a0a6ca9ec90690a97151ba58cce2e Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 19 Nov 2016 01:48:38 +0100 Subject: [PATCH] save some goroutines --- transport/internet/kcp/output.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport/internet/kcp/output.go b/transport/internet/kcp/output.go index 00158886..64f63e8f 100644 --- a/transport/internet/kcp/output.go +++ b/transport/internet/kcp/output.go @@ -44,7 +44,7 @@ func (this *BufferedSegmentWriter) Write(seg Segment) { } func (this *BufferedSegmentWriter) FlushWithoutLock() { - go this.writer.Write(this.buffer) + this.writer.Write(this.buffer) this.buffer = nil }