Explorar o código

save some goroutines

Darien Raymond %!s(int64=9) %!d(string=hai) anos
pai
achega
ed780951aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      transport/internet/kcp/output.go

+ 1 - 1
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
 }