Ver Fonte

add sleep at end of online notificaiton loop

Grant Limberg há 1 semana atrás
pai
commit
e347f895b8
1 ficheiros alterados com 2 adições e 0 exclusões
  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));
 	}
 }