Debug download destination race condition
I'm trying to figure out what might be causing the random race conditions in the download code. The main change in this MR so far is making closing the download destination the responsibility of the caller of managedNewDownload
. That way we close the destination in the same place where we open it which seems to be more idiomatic.
Edited by Christopher Schinnerl