From 1541e8b09a7a596b4c3f1e1381bc7911ac582573 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 29 Dec 2010 21:21:30 +0100 Subject: hotfile fix --- module/plugins/Account.py | 4 ++++ module/plugins/accounts/HotfileCom.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'module/plugins') diff --git a/module/plugins/Account.py b/module/plugins/Account.py index 29c5f93b8..5fa7140f5 100644 --- a/module/plugins/Account.py +++ b/module/plugins/Account.py @@ -56,6 +56,8 @@ class Account(): data["valid"] = False if self.core.debug: print_exc() + finally: + if req: req.close() def setAccounts(self, accounts): self.accounts = accounts @@ -95,6 +97,8 @@ class Account(): except Exception, e: infos = {"error": str(e)} + if req: req.close() + self.core.log.debug("Account Info: %s" % str(infos)) self.infos[name] = infos diff --git a/module/plugins/accounts/HotfileCom.py b/module/plugins/accounts/HotfileCom.py index 42b8274b1..9b54e6a3c 100644 --- a/module/plugins/accounts/HotfileCom.py +++ b/module/plugins/accounts/HotfileCom.py @@ -69,7 +69,7 @@ class HotfileCom(Account): post.update({"action": method}) post.update({"username":user, "passwordmd5dig":pwhash, "digest":digest}) resp = req.load("http://api.hotfile.com/", post=post) - req.clean() + req.close() return resp def login(self, user, data, req): -- cgit v1.2.3