diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-01-15 08:33:58 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-01-15 08:33:58 (GMT) |
commit | 2e085a19091f9ad401605859c9d833371cb2afc1 (patch) | |
tree | 76740999f6cba3214d1b498c23df00068e0934bc | |
parent | 5f88e31cd488113e6a743a98e9066ae83b4c94d4 (diff) |
Remove canceled download from active downloads list #6018
-rw-r--r-- | downloadmanager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/downloadmanager.py b/downloadmanager.py index 5d4a80d..156da0b 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -263,6 +263,8 @@ class Download: logging.debug('Downloaded entry has been deleted from the datastore: %r' % uid) # 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}"', 'Sugar Download', |