From 1b6d92c778b207ec6a65014507a5efc536a5c132 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Thu, 24 Sep 2009 08:33:35 +0000 Subject: [PATCH] add a start_daemon method --- deluge/ui/web/json_api.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deluge/ui/web/json_api.py b/deluge/ui/web/json_api.py index 363045713..a95b741f9 100644 --- a/deluge/ui/web/json_api.py +++ b/deluge/ui/web/json_api.py @@ -670,6 +670,13 @@ class WebApi(JSONComponent): d.addErrback(on_connect_failed, host_id) return main_deferred + @export + def start_daemon(self, port): + """ + Starts a local daemon. + """ + client.start_daemon(port, deluge.configmanager.get_config_dir()) + @export def stop_daemon(self, host_id): """