mirror of https://github.com/Icinga/icinga2.git
JsonRpcConnection: add missing CpuBoundWork
This commit is contained in:
parent
a451327b81
commit
16913cb977
|
@ -87,6 +87,8 @@ void JsonRpcConnection::HandleIncomingMessages(boost::asio::yield_context yc)
|
|||
break;
|
||||
}
|
||||
|
||||
CpuBoundWork taskStats (yc);
|
||||
|
||||
l_TaskStats.InsertValue(Utility::GetTime(), 1);
|
||||
}
|
||||
}
|
||||
|
@ -201,6 +203,8 @@ void JsonRpcConnection::Disconnect()
|
|||
} catch (...) {
|
||||
}
|
||||
|
||||
CpuBoundWork removeClient (yc);
|
||||
|
||||
if (m_Endpoint) {
|
||||
m_Endpoint->RemoveClient(this);
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue