keep already received data if not enough to decode
This commit is contained in:
parent
885609309c
commit
221e11861f
@ -74,6 +74,7 @@ func (a *agent) work() {
|
|||||||
}
|
}
|
||||||
if inpack, l, err = decodeInPack(data); err != nil {
|
if inpack, l, err = decodeInPack(data); err != nil {
|
||||||
a.worker.err(err)
|
a.worker.err(err)
|
||||||
|
leftdata = data
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
leftdata = nil
|
leftdata = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user