From 4c54cfedb91baa856b92e53d4ea930f6e6a4cd77 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 14eb00833..9fb5defc6 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