summaryrefslogtreecommitdiffstats
path: root/module/plugins/Account.py
diff options
context:
space:
mode:
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