summaryrefslogtreecommitdiffstats
path: root/pyload/database
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-09 23:24:08 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-05-09 23:24:08 +0200
commita677c082aeabba00a079db581bfae194d069cf11 (patch)
tree5fa099c37aa241f9a0ef7ba6d2994b01d9e1df2f /pyload/database
parentRemove old .pot files (diff)
downloadpyload-a677c082aeabba00a079db581bfae194d069cf11.tar.xz
Fix https://github.com/pyload/pyload/issues/1406
Diffstat (limited to 'pyload/database')
-rw-r--r--pyload/database/Backend.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyload/database/Backend.py b/pyload/database/Backend.py
index 9acca287c..3262e6155 100644
--- a/pyload/database/Backend.py
+++ b/pyload/database/Backend.py
@@ -115,12 +115,12 @@ class DatabaseJob(object):
self.done.wait()
-class DatabaseBackend(Thread):
+class DatabaseBackend(threading.Thread):
subs = []
def __init__(self, core):
- Thread.__init__(self)
+ threading.Thread.__init__(self)
self.setDaemon(True)
self.core = core
@@ -322,7 +322,7 @@ class DatabaseBackend(Thread):
@classmethod
def unregisterSub(cls, klass):
- cls.subs.reshutil.move(klass)
+ cls.subs.remove(klass)
def __getattr__(self, attr):