Added sleep in program loop

This commit is contained in:
2020-07-27 16:37:21 +02:00
parent ac8b58500e
commit dc934a1c87

View File

@@ -10,6 +10,7 @@
#include <filesystem>
#include "Version.h"
#include <cstring>
#include <thread>
std::vector<std::string> lua_scripts_in_folder(const std::string& path_str) {
std::vector<std::string> scripts;
@@ -105,7 +106,10 @@ int main(int argc, char* argv[]) {
spdlog::info("All services loaded.");
while (true) {}
while (true) {
using namespace std::chrono_literals;
std::this_thread::sleep_for(100ms);
}
return 0;
}