diff options
Diffstat (limited to 'python/downloadprovider.py')
| -rw-r--r-- | python/downloadprovider.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/python/downloadprovider.py b/python/downloadprovider.py index 5ce8cfce..53bd488a 100644 --- a/python/downloadprovider.py +++ b/python/downloadprovider.py @@ -58,7 +58,8 @@ class DownloadInstance(object): def _destroy_instance(self, ctxt): try: - self.__class__._registered_instances.remove(self) + if self in self.__class__._registered_instances: + self.__class__._registered_instances.remove(self) self.perform_destroy_instance() except: log.log_error(traceback.format_exc()) |
