summaryrefslogtreecommitdiffstats
path: root/module/ThreadManager.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-03 00:29:40 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-06-03 00:29:40 +0200
commitbdd63224c2d3760a0ded8be2b354abc139a1e858 (patch)
treea1c571de2b1e7534f6571834f6fccd57574b4b15 /module/ThreadManager.py
parentfix (diff)
downloadpyload-bdd63224c2d3760a0ded8be2b354abc139a1e858.tar.xz
wupload fix
Diffstat (limited to 'module/ThreadManager.py')
-rw-r--r--module/ThreadManager.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/ThreadManager.py b/module/ThreadManager.py
index fd47fada2..7b40fe05c 100644
--- a/module/ThreadManager.py
+++ b/module/ThreadManager.py
@@ -29,6 +29,7 @@ from random import choice
import pycurl
import PluginThread
+from module.PyFile import PyFile
from module.network.RequestFactory import getURL
from module.utils import freeSpace
@@ -78,12 +79,12 @@ class ThreadManager:
#----------------------------------------------------------------------
def downloadingIds(self):
"""get a list of the currently downloading pyfile's ids"""
- return [x.active.id for x in self.threads if x.active and x.active != "quit"]
+ return [x.active.id for x in self.threads if x.active and isinstance(x.active, PyFile)]
#----------------------------------------------------------------------
def processingIds(self):
"""get a id list of all pyfiles processed"""
- return [x.active.id for x in self.threads + self.localThreads if x.active and x.active != "quit"]
+ return [x.active.id for x in self.threads + self.localThreads if x.active and isinstance(x.active, PyFile)]
#----------------------------------------------------------------------