Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always delete downloader temporary data file
If the download failed, the temporary data file (data.tmp.pid) was not deleted. Ensure it is delete in all cases. Also move the creation of the temporary file right before we need it. The chance that creating a temporary file will fail is practically zero so there is no need to do this upfront. This makes the code easier to follow and maintain. Signed-off-by: Nir Soffer <[email protected]>
- Loading branch information