summaryrefslogtreecommitdiffstats
path: root/module/plugins/Account.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-03 16:42:41 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-02-03 16:42:41 +0100
commit5cda4b2183e84353f30e43e8a6279382064f0b00 (patch)
tree0895181cd5f4aa0c5d4ff1891442f160347a7a37 /module/plugins/Account.py
parentadded simplejson (diff)
downloadpyload-5cda4b2183e84353f30e43e8a6279382064f0b00.tar.xz
SO fix try
Diffstat (limited to 'module/plugins/Account.py')
-rw-r--r--module/plugins/Account.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/module/plugins/Account.py b/module/plugins/Account.py
index 9c46f5398..6eda09077 100644
--- a/module/plugins/Account.py
+++ b/module/plugins/Account.py
@@ -59,9 +59,12 @@ class Account():
finally:
if req: req.close()
- def relogin(self):
- for user, data in self.accounts.iteritems():
- self._login(user, data)
+ def relogin(self, user):
+ req = self.getAccountRequest(user)
+ if req:
+ req.cj.clear()
+ req.close()
+ self._login(user, self.accounts[user])
def setAccounts(self, accounts):
self.accounts = accounts