URL::DownloadTask::downloaded needs to be atomic

Tsan is flagging up a data race if I tried and calculate the progress of a download whilst it is happening.
I think the downloaded member and probably finished should simply be atomic.

Cheers

1 Like