mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 07:08:30 +00:00
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())
|
log.error("Reason: %s", failure.getErrorMessage())
|
||||||
return failure
|
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.addCallback(on_get_file)
|
||||||
d.addErrback(on_get_file_error)
|
d.addErrback(on_get_file_error)
|
||||||
return d
|
return d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user