From efd2762255564699d4d6622e08fc268891a21fd0 Mon Sep 17 00:00:00 2001 From: geoffk <> Date: Sat, 5 Feb 2011 00:29:10 +0000 Subject: [PATCH] Fix #1507 - Temporary file race condition in core/core.py:add_torrent_url --- deluge/core/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/core/core.py b/deluge/core/core.py index 3d4fcf4d5..bcfd716c0 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -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