1
0

proper start and stop commands for daemon

This commit is contained in:
ThomasV
2014-07-25 15:42:28 +02:00
parent 374efd970e
commit 96070246b7
3 changed files with 36 additions and 11 deletions

View File

@@ -196,6 +196,9 @@ class NetworkProxy(threading.Thread):
def stop(self):
self.running = False
def stop_daemon(self):
return self.send([('daemon.stop',[])], None)
def register_callback(self, event, callback):
with self.lock:
if not self.callbacks.get(event):