Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/downloadmanager.py
diff options
context:
space:
mode:
Diffstat (limited to 'downloadmanager.py')
-rw-r--r--downloadmanager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/downloadmanager.py b/downloadmanager.py
index 607aefc..64b1d17 100644
--- a/downloadmanager.py
+++ b/downloadmanager.py
@@ -269,10 +269,10 @@ class Download:
def __datastore_deleted_cb(self, uid):
logging.debug('Downloaded entry has been deleted from the datastore: %r'
% uid)
+ global _active_downloads
if self in _active_downloads:
# TODO: Use NS_BINDING_ABORTED instead of NS_ERROR_FAILURE.
self.cancelable.cancel(NS_ERROR_FAILURE) #NS_BINDING_ABORTED)
- global _active_downloads
_active_downloads.remove(self)
components.registrar.registerFactory('{23c51569-e9a1-4a92-adeb-3723db82ef7c}',