forked from quic-go/quic-go
make the buffered qlog writer used in interop flush before closing
This commit is contained in:
@@ -216,13 +216,7 @@ func main() {
|
||||
log.Fatal(err)
|
||||
}
|
||||
log.Printf("Creating qlog file %s.\n", filename)
|
||||
return struct {
|
||||
io.Writer
|
||||
io.Closer
|
||||
}{
|
||||
bufio.NewWriter(f),
|
||||
f,
|
||||
}
|
||||
return utils.NewBufferedWriteCloser(bufio.NewWriter(f), f)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user