瀏覽代碼

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