Otherwise, if the download loop wakes too quickly, it might miss the last_ret value update from the processing thread and loop again.
Otherwise, if the download loop wakes too quickly, it might miss the last_ret value update from the processing thread and loop again.