mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-10-23 23:17:39 +00:00
save some goroutines
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user