mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-08 09:35:08 +00:00
add a start_daemon method
This commit is contained in:
parent
401aa28ba8
commit
1b6d92c778
@ -670,6 +670,13 @@ class WebApi(JSONComponent):
|
|||||||
d.addErrback(on_connect_failed, host_id)
|
d.addErrback(on_connect_failed, host_id)
|
||||||
return main_deferred
|
return main_deferred
|
||||||
|
|
||||||
|
@export
|
||||||
|
def start_daemon(self, port):
|
||||||
|
"""
|
||||||
|
Starts a local daemon.
|
||||||
|
"""
|
||||||
|
client.start_daemon(port, deluge.configmanager.get_config_dir())
|
||||||
|
|
||||||
@export
|
@export
|
||||||
def stop_daemon(self, host_id):
|
def stop_daemon(self, host_id):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user