summaryrefslogtreecommitdiffstats
path: root/pyload/manager/Remote.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 17:20:59 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-04-13 17:20:59 +0200
commite00ef98491f79ae8aa972ae1473dae4a7b78c07e (patch)
tree31be0c7cdcebb61525bcc387bcf15d265a1c494a /pyload/manager/Remote.py
parentFix except (diff)
downloadpyload-e00ef98491f79ae8aa972ae1473dae4a7b78c07e.tar.xz
Cleanup
Diffstat (limited to 'pyload/manager/Remote.py')
-rw-r--r--pyload/manager/Remote.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/pyload/manager/Remote.py b/pyload/manager/Remote.py
index 910881164..4fdb36fc2 100644
--- a/pyload/manager/Remote.py
+++ b/pyload/manager/Remote.py
@@ -5,6 +5,7 @@ from threading import Thread
from traceback import print_exc
class BackendBase(Thread):
+
def __init__(self, manager):
Thread.__init__(self)
self.m = manager
@@ -12,6 +13,7 @@ class BackendBase(Thread):
self.enabled = True
self.running = False
+
def run(self):
self.running = True
try:
@@ -23,18 +25,23 @@ class BackendBase(Thread):
finally:
self.running = False
+
def setup(self, host, port):
pass
+
def checkDeps(self):
return True
+
def serve(self):
pass
+
def shutdown(self):
pass
+
def stop(self):
self.enabled = False# set flag and call shutdowm message, so thread can react
self.shutdown()
@@ -43,6 +50,7 @@ class BackendBase(Thread):
class RemoteManager(object):
available = []
+
def __init__(self, core):
self.core = core
self.backends = []