Переглянути джерело

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));
 	}
 }