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:
parent
f643344154
commit
b2c7b1a120
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user