diff options
Diffstat (limited to 'module')
-rw-r--r-- | module/network/HTTPDownload.py | 2 | ||||
-rw-r--r-- | module/plugins/Plugin.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/module/network/HTTPDownload.py b/module/network/HTTPDownload.py index 603fea7a8..0f06dcd6f 100644 --- a/module/network/HTTPDownload.py +++ b/module/network/HTTPDownload.py @@ -248,8 +248,8 @@ class HTTPDownload(): def close(self): """ cleanup """ for chunk in self.chunks: - chunk.close() self.m.remove_handle(chunk.c) + chunk.close() self.chunks = [] if hasattr(self, "m"): diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index bdb1af77b..68fb6f8be 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -521,7 +521,7 @@ class Plugin(object): cache = self.core.files.cache.values() for pyfile in cache: - if pyfile != self.pyfile and pyfile.package().folder == pack.folder: + if pyfile != self.pyfile and pyfile.name == self.pyfile.name and pyfile.package().folder == pack.folder: if pyfile.status in (0, 12): #finished or downloading raise SkipDownload(pyfile.pluginname) elif pyfile.status in (5, 7) and starting: #a download is waiting/starting and was appenrently started before |