From ebbbc0acda82a93e8b88062aff318a421bb91035 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Sun, 18 Jun 2006 06:16:51 +0000 Subject: [PATCH] Add shutdown method, closing ticket #121 --- src/xml-rpc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xml-rpc.c b/src/xml-rpc.c index 56d73ebc..c22985da 100644 --- a/src/xml-rpc.c +++ b/src/xml-rpc.c @@ -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; }