1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-02 23:47:07 -05:00

fix dead loop in merging reader

This commit is contained in:
Darien Raymond 2017-03-28 13:10:57 +02:00
parent f643344154
commit b2c7b1a120
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

View File

@ -15,7 +15,9 @@ func NewMergingReader(reader Reader) Reader {
func (r *MergingReader) Read() (*Buffer, error) {
if r.leftover != nil {
return r.leftover, nil
b := r.leftover
r.leftover = nil
return b, nil
}
b, err := r.reader.Read()