Added loop one method to http server.

This commit is contained in:
Relintai 2021-05-01 17:37:10 +02:00
parent d4ccc6775d
commit c6033ab136
2 changed files with 5 additions and 0 deletions

View File

@ -103,6 +103,10 @@ void HTTPServer::initialize() {
listenBuilder->asyncRun();
}
void HTTPServer::loop_once() {
application->update();
}
void HTTPServer::main_loop() {
while (true) {
//std::this_thread::sleep_for(std::chrono::seconds(1));

View File

@ -37,6 +37,7 @@ public:
virtual void configure();
virtual void initialize();
void loop_once();
void main_loop();
HTTPServer();