mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 15:54:56 +00:00
docs: nextjs,frontends,package (10 files)
This commit is contained in:
@@ -110,11 +110,8 @@ bool Server::start() {
|
||||
registerRoutes();
|
||||
drogon::app().addListener(bind_address_, static_cast<uint16_t>(port_));
|
||||
|
||||
server_thread_ = std::thread([]() {
|
||||
drogon::app().run();
|
||||
});
|
||||
|
||||
running_.store(true);
|
||||
server_thread_ = std::thread(&Server::runServer, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -161,5 +158,10 @@ void Server::registerRoutes() {
|
||||
routes_registered_ = true;
|
||||
}
|
||||
|
||||
void Server::runServer() {
|
||||
drogon::app().run();
|
||||
running_.store(false);
|
||||
}
|
||||
|
||||
} // namespace daemon
|
||||
} // namespace dbal
|
||||
|
||||
Reference in New Issue
Block a user