Add shutdown method, closing ticket #121

This commit is contained in:
Ron Pedde 2006-06-18 06:16:51 +00:00
parent c808a6b853
commit ebbbc0acda

View File

@ -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;
} }