mirror of https://github.com/kiwix/libkiwix.git
Merge pull request #415 from kiwix/stop_server
This commit is contained in:
commit
095c86cf90
|
@ -63,7 +63,7 @@ subdir('static')
|
||||||
subdir('src')
|
subdir('src')
|
||||||
subdir('test')
|
subdir('test')
|
||||||
|
|
||||||
pkg_requires = ['libzim', 'icu-i18n', 'pugixml', 'libcurl']
|
pkg_requires = ['libzim', 'icu-i18n', 'pugixml', 'libcurl', 'libmicrohttpd']
|
||||||
|
|
||||||
pkg_conf = configuration_data()
|
pkg_conf = configuration_data()
|
||||||
pkg_conf.set('prefix', get_option('prefix'))
|
pkg_conf.set('prefix', get_option('prefix'))
|
||||||
|
|
|
@ -53,8 +53,10 @@ bool Server::start() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Server::stop() {
|
void Server::stop() {
|
||||||
|
if (mp_server) {
|
||||||
mp_server->stop();
|
mp_server->stop();
|
||||||
mp_server.reset(nullptr);
|
mp_server.reset(nullptr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Server::setRoot(const std::string& root)
|
void Server::setRoot(const std::string& root)
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
#ifndef KIWIX_XMLRPC_H_
|
#ifndef KIWIX_XMLRPC_H_
|
||||||
#define KIWIX_XMLRPC_H_
|
#define KIWIX_XMLRPC_H_
|
||||||
|
|
||||||
|
#include <stdexcept>
|
||||||
#include <tools/otherTools.h>
|
#include <tools/otherTools.h>
|
||||||
#include <pugixml.hpp>
|
#include <pugixml.hpp>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue