mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-16 05:17:31 +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())
|
||||
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…
x
Reference in New Issue
Block a user