Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-16 16:56:52 (GMT)
committer Lucian Branescu Mihaila <lucian.branescu@gmail.com>2010-07-16 16:56:52 (GMT)
commit8349db6d0814bc6ac1c0f8c04f1ef0b907087d5a (patch)
tree6868337145516c1e29c70166d6bcc2f41a3b8448
parent6a706e919e3d2d3ad7dcafa87086ade09f5b5aeb (diff)
Remove redundant _active_downloads.remove.
-rw-r--r--downloadmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/downloadmanager.py b/downloadmanager.py
index 6b57036..6619b47 100644
--- a/downloadmanager.py
+++ b/downloadmanager.py
@@ -186,6 +186,7 @@ class UserDownload(object):
datastore.delete(self._object_id)
except Exception, e:
logging.warning('Object has been deleted already %s' % e)
+
if self.dl_jobject is not None:
self.cleanup_datastore_write()
if self._stop_alert is not None:
@@ -249,7 +250,6 @@ class UserDownload(object):
global _active_downloads
if self in _active_downloads:
self.cancel()
- _active_downloads.remove(self)
#def save_link(uri, title, mime_type=None):
# pass