From 56754bcdbd15db520318a88ac779e1eb027853a8 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 2 Jun 2011 17:01:59 +0200 Subject: added several checks to improve stability --- pyLoadCore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index e8b024f4c..1bec0f7cc 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -550,7 +550,7 @@ class ServerMethods(): downloads = [] for pyfile in [x.active for x in self.core.threadManager.threads + self.core.threadManager.localThreads if x.active and x.active != "quit"]: - if not isinstance(pyfile, PyFile): + if not isinstance(pyfile, PyFile) or not hasattr(pyfile, "plugin"): continue download = {'id': pyfile.id, 'name': pyfile.name, -- cgit v1.2.3