summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-19 21:38:56 +0100
committerGravatar Nitzo <nitzo2001@yahoo.com> 2016-01-19 21:38:56 +0100
commitfd4ec5d94e69e3231b4901400497e41383b3168c (patch)
treea3868193d8d6f74b02f3810daa41119aaabafea2 /module
parent[Http] fix #2302 (diff)
downloadpyload-fd4ec5d94e69e3231b4901400497e41383b3168c.tar.xz
fix account refresh
Diffstat (limited to 'module')
-rw-r--r--module/plugins/internal/Account.py4
-rw-r--r--module/plugins/internal/misc.py6
2 files changed, 6 insertions, 4 deletions
diff --git a/module/plugins/internal/Account.py b/module/plugins/internal/Account.py
index fa3427aac..184926a47 100644
--- a/module/plugins/internal/Account.py
+++ b/module/plugins/internal/Account.py
@@ -12,7 +12,7 @@ from module.plugins.internal.misc import Periodical, compare_time, decode, isite
class Account(Plugin):
__name__ = "Account"
__type__ = "account"
- __version__ = "0.70"
+ __version__ = "0.71"
__status__ = "stable"
__description__ = """Base account plugin"""
@@ -329,6 +329,8 @@ class Account(Plugin):
else:
self.add(user, password, options)
+ return True
+
@lock
def removeAccount(self, user):
diff --git a/module/plugins/internal/misc.py b/module/plugins/internal/misc.py
index b5046e962..c449070e0 100644
--- a/module/plugins/internal/misc.py
+++ b/module/plugins/internal/misc.py
@@ -38,7 +38,7 @@ except ImportError:
class misc(object):
__name__ = "misc"
__type__ = "plugin"
- __version__ = "0.23"
+ __version__ = "0.24"
__status__ = "stable"
__pattern__ = r'^unmatchable$'
@@ -220,10 +220,10 @@ class SimpleQueue(object):
def lock(fn):
- def new(*args):
+ def new(*args, **kwargs):
args[0].lock.acquire()
try:
- return fn(*args)
+ return fn(*args, **kwargs)
finally:
args[0].lock.release()