non blocking flusing

pull/215/head
v2ray 2016-07-12 17:37:12 +02:00
parent b68075a99d
commit 94d4b02191
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ func (this *BufferedSegmentWriter) Write(seg Segment) {
} }
func (this *BufferedSegmentWriter) FlushWithoutLock() { func (this *BufferedSegmentWriter) FlushWithoutLock() {
this.writer.Write(this.buffer) go this.writer.Write(this.buffer)
this.buffer = nil this.buffer = nil
} }