1
1
mirror of https://github.com/wader/fq.git synced 2024-11-23 18:56:52 +03:00

interp: Disable progress after decode is done

Otherwise reading might cause progress output
This commit is contained in:
Mattias Wadman 2021-10-25 11:11:26 +02:00
parent c1d9b4d2d5
commit 2e964fa44f

View File

@ -611,7 +611,11 @@ func (i *Interp) _decode(c interface{}, a []interface{}) interface{} {
},
)
}
defer evalProgress(nil)
// when done decoding, tell progress function were done and disable it
defer func() {
bbf.progressFn = nil
evalProgress(nil)
}()
}
}