From 670fb45a46d8723b2c7bf3d667911c567c433283 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Fri, 1 Jul 2011 13:51:34 +0200 Subject: new api class + documentation --- module/PyFile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/PyFile.py') 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): -- cgit v1.2.3