mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
detect end of channel
This commit is contained in:
@@ -55,7 +55,10 @@ func (this *fileLogWriter) Log(log LogEntry) {
|
||||
|
||||
func (this *fileLogWriter) run() {
|
||||
for {
|
||||
entry := <-this.queue
|
||||
entry, open := <-this.queue
|
||||
if !open {
|
||||
break
|
||||
}
|
||||
this.logger.Print(entry.String() + platform.LineSeparator())
|
||||
entry.Release()
|
||||
entry = nil
|
||||
|
||||
Reference in New Issue
Block a user