diff options
author | Lucian 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) |
commit | 8349db6d0814bc6ac1c0f8c04f1ef0b907087d5a (patch) | |
tree | 6868337145516c1e29c70166d6bcc2f41a3b8448 | |
parent | 6a706e919e3d2d3ad7dcafa87086ade09f5b5aeb (diff) |
Remove redundant _active_downloads.remove.
-rw-r--r-- | downloadmanager.py | 2 |
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 |