mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
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…
x
Reference in New Issue
Block a user