mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-25 22:55:56 -05:00
Add shutdown method, closing ticket #121
This commit is contained in:
parent
c808a6b853
commit
ebbbc0acda
@ -376,6 +376,12 @@ void xml_handle(WS_CONNINFO *pwsc) {
|
||||
return;
|
||||
}
|
||||
|
||||
if(strcasecmp(method,"shutdown") == 0) {
|
||||
config.stop=1;
|
||||
xml_return_error(pwsc,200,"Success");
|
||||
return;
|
||||
}
|
||||
|
||||
xml_return_error(pwsc,500,"Invalid method");
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user