diff options
Diffstat (limited to 'module/PyFile.py')
-rw-r--r-- | module/PyFile.py | 4 |
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): |