diff options
Diffstat (limited to 'module/database/FileDatabase.py')
-rw-r--r-- | module/database/FileDatabase.py | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/module/database/FileDatabase.py b/module/database/FileDatabase.py index 6ea7d1104..0ed526240 100644 --- a/module/database/FileDatabase.py +++ b/module/database/FileDatabase.py @@ -21,7 +21,7 @@ from threading import RLock from time import time -from module.utils import formatSize +from module.utils import formatSize, lock from module.PullEvents import InsertEvent, ReloadAllEvent, RemoveEvent, UpdateEvent from module.PyPackage import PyPackage from module.PyFile import PyFile @@ -67,17 +67,7 @@ class FileHandler: args[0].jobCache = {} return func(*args) return new - - def lock(func): - def new(*args): - #print "Handler: %s args: %s" % (func,args[1:]) - args[0].lock.acquire() - res = func(*args) - args[0].lock.release() - #print "Handler: %s return: %s" % (func, res) - return res - return new - + #---------------------------------------------------------------------- def save(self): """saves all data to backend""" |