Fix #1507 - Temporary file race condition in core/core.py:add_torrent_url
This commit is contained in:
parent
88039a0eda
commit
4c54cfedb9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue