mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-10 22:10:15 -05:00
Add shutdown method, closing ticket #121
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user