summaryrefslogtreecommitdiffstats
path: root/module/PyFile.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-01 13:51:34 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-07-01 13:51:34 +0200
commit670fb45a46d8723b2c7bf3d667911c567c433283 (patch)
treefb8de33ae76f8e146ad88b6c0e485fbfec0ead27 /module/PyFile.py
parentcleanup (diff)
downloadpyload-670fb45a46d8723b2c7bf3d667911c567c433283.tar.xz
new api class + documentation
Diffstat (limited to 'module/PyFile.py')
-rw-r--r--module/PyFile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/PyFile.py b/module/PyFile.py
index 6ab8318fc..b5384c399 100644
--- a/module/PyFile.py
+++ b/module/PyFile.py
@@ -176,7 +176,6 @@ class PyFile(object):
}
}
- @lock
def abortDownload(self):
"""abort pyfile if possible"""
while self.id in self.m.core.threadManager.processingIds():
@@ -186,8 +185,9 @@ class PyFile(object):
sleep(0.1)
self.abort = False
- if hasattr(self, "plugin") and self.plugin and self.plugin.req:
+ if self.hasPlugin() and self.plugin.req:
self.plugin.req.abortDownloads()
+
self.release()
def finishIfDone(self):