Преглед на файлове

add sleep at end of online notificaiton loop

Grant Limberg преди 1 седмица
родител
ревизия
e347f895b8
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      controller/CentralDB.cpp

+ 2 - 0
controller/CentralDB.cpp

@@ -1498,6 +1498,8 @@ void CentralDB::onlineNotificationThread()
 		catch (std::exception& e) {
 			fprintf(stderr, "%s: error in onlinenotification thread: %s\n", _myAddressStr.c_str(), e.what());
 		}
+
+		std::this_thread::sleep_for(std::chrono::seconds(10));
 	}
 }