Module: deluge
Branch: master
Commit: 4c54cfedb91baa856b92e53d4ea930f6e6a4cd77

Author: geoffk <>
Date:   Sat Feb  5 00:29:10 2011 +0000

Fix #1507 - Temporary file race condition in core/core.py:add_torrent_url

---

 deluge/core/core.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/deluge/core/core.py b/deluge/core/core.py
index 14eb008..9fb5def 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

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to