summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-17 20:25:48 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-17 20:25:48 +0200
commitd739c5809256dcacb2f7e739a06e8f4107f7e20c (patch)
treeacf7df065d67ba34e63138f61bfcb760cf901920 /module
parentskip files across packages (diff)
downloadpyload-d739c5809256dcacb2f7e739a06e8f4107f7e20c.tar.xz
fixed last commit
Diffstat (limited to 'module')
-rw-r--r--module/network/HTTPDownload.py2
-rw-r--r--module/plugins/Plugin.py2
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