Fix #1507 - Temporary file race condition in core/core.py:add_torrent_url

This commit is contained in:
geoffk 2011-02-05 00:29:10 +00:00 committed by Calum Lind
parent 88039a0eda
commit 4c54cfedb9
1 changed files with 1 additions and 1 deletions

View File

@ -254,7 +254,7 @@ class Core(component.Component):
log.error("Reason: %s", failure.getErrorMessage())
return failure
d = download_file(url, tempfile.mkstemp()[1], headers=headers)
d = download_file(url, tempfile.mkstemp()[1], headers=headers, force_filename=True)
d.addCallback(on_get_file)
d.addErrback(on_get_file_error)
return d