From 3f23a2c814bffea6bb6709928dd2174452644943 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 13 Jul 2011 00:08:40 +0200 Subject: fixes for last commit --- module/Api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/Api.py') diff --git a/module/Api.py b/module/Api.py index 5328fb617..1440f485e 100644 --- a/module/Api.py +++ b/module/Api.py @@ -159,7 +159,7 @@ class Api(Iface): not self.core.threadManager.pause and self.isTimeDownload(), self.core.config['reconnect']['activated'] and self.isTimeReconnect()) - for pyfile in [x.active for x in self.core.threadManager.threads if x.active and isinstance(x, PyFile)]: + for pyfile in [x.active for x in self.core.threadManager.threads if x.active and isinstance(x.active, PyFile)]: serverStatus.speed += pyfile.getSpeed() #bytes/s return serverStatus -- cgit v1.2.3