mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25: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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(strcasecmp(method,"shutdown") == 0) {
|
||||||
|
config.stop=1;
|
||||||
|
xml_return_error(pwsc,200,"Success");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
xml_return_error(pwsc,500,"Invalid method");
|
xml_return_error(pwsc,500,"Invalid method");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user