1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-22 01:57:12 -05:00

save some goroutines

This commit is contained in:
Darien Raymond 2016-11-19 01:48:38 +01:00
parent 65a49e7fa0
commit ed780951aa
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -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
}