ensure task recovered data is set to nil

This commit is contained in:
munna0908 2025-07-02 17:51:47 +05:30
parent 31e93c1bca
commit d618c4b10c
No known key found for this signature in database
GPG Key ID: 2FFCD637E937D3E6

View File

@ -510,6 +510,9 @@ proc asyncDecode*(
if not task.success.load():
return failure("Leopard decoding task failed")
defer:
task.recovered = default(Isolated[seq[seq[byte]]])
var recovered = task.recovered.extract
success(recovered)