summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-12 11:32:52 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-09-12 11:32:52 +0200
commitce13d035ed744c6df6c150efef785e8c3ce66de9 (patch)
treebaf36f4b6dfd73f346909d575976b325146b37c8
parentadditional fix (diff)
downloadpyload-ce13d035ed744c6df6c150efef785e8c3ce66de9.tar.xz
speedmanager time fix
-rw-r--r--module/SpeedManager.py2
-rw-r--r--module/plugins/Account.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/module/SpeedManager.py b/module/SpeedManager.py
index e0ce05586..44d59dad4 100644
--- a/module/SpeedManager.py
+++ b/module/SpeedManager.py
@@ -54,7 +54,7 @@ class SpeedManager(Thread):
def manageSpeed(self):
maxSpeed = self.getMaxSpeed()
- if maxSpeed <= 0 or self.core.compare_time(self.hook.getConfig("start").split(":"),
+ if maxSpeed <= 0 or not self.core.compare_time(self.hook.getConfig("start").split(":"),
self.hook.getConfig("end").split(":")):
for pyfile in [x.active for x in self.core.threadManager.threads if x.active and x.active != "quit"]:
pyfile.plugin.req.speedLimitActive = False
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 61101347d..f731eac17 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -53,7 +53,8 @@ class Account():
self.login(user, self.accounts[user])
def removeAccount(self, user):
- del self.accounts[user]
+ if self.accounts.has_key(user):
+ del self.accounts[user]
def getAccountInfo(self, name):
return {