mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-28 05:49:35 +00:00
Stop the internal server only if it exists.
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user