Merge branch 'master' into configfilewriteable

This commit is contained in:
Lukas-Heiligenbrunner authored and GitHub committed 2020-05-21 11:28:33 +02:00
commit fed6d251be
3 files changed
+123 -63

No files matched your search

+7 -6
View File
@@ -54,14 +54,15 @@ IPRefresher::IPRefresher(bool loop) {
if (loop) {
Logger::message("startup of service");
Logger::message("Version: " + Version::VERSION);
if (Config::readConfig()) {
while (true) {
Logger::message("starting check");
while (true) {
Logger::message("starting check");
if (Config::readConfig()) {
checkIPAdress(false);
std::this_thread::sleep_for(std::chrono::milliseconds(300000));
} else {
std::cout << "incorrect credentials!" << std::endl;
}
} else {
std::cout << "incorrect credentials!" << std::endl;
std::this_thread::sleep_for(std::chrono::milliseconds(300000));
}
}
}