keep already received data if not enough to decode

This commit is contained in:
Sam Grimee 2014-01-14 17:06:20 +01:00
parent 885609309c
commit 221e11861f

View File

@ -74,6 +74,7 @@ func (a *agent) work() {
}
if inpack, l, err = decodeInPack(data); err != nil {
a.worker.err(err)
leftdata = data
continue
}
leftdata = nil