提交 cc5af317 编写于 作者: V VDimir

Update async methics at program srartup

上级 0e9daded
......@@ -72,9 +72,6 @@ void AsynchronousMetrics::run()
while (true)
{
if (wait_cond.wait_until(lock, get_next_minute(), [this] { return quit; }))
break;
try
{
update();
......@@ -83,6 +80,9 @@ void AsynchronousMetrics::run()
{
tryLogCurrentException(__PRETTY_FUNCTION__);
}
if (wait_cond.wait_until(lock, get_next_minute(), [this] { return quit; }))
break;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册