mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-10 07:14:30 +02:00
parent
985c6bc7d9
commit
9622b075bc
@ -258,11 +258,8 @@ Value RequestCertificateHandler(const MessageOrigin& origin, const Dictionary::P
|
|||||||
void ApiClient::TimeoutTimerHandler(void)
|
void ApiClient::TimeoutTimerHandler(void)
|
||||||
{
|
{
|
||||||
if (m_Seen < Utility::GetTime() - 60 && (!m_Endpoint || !m_Endpoint->GetSyncing())) {
|
if (m_Seen < Utility::GetTime() - 60 && (!m_Endpoint || !m_Endpoint->GetSyncing())) {
|
||||||
/* Obtain a strong reference to ourselves because Disconnect otherwise removes the last reference */
|
|
||||||
ApiClient::Ptr self = this;
|
|
||||||
|
|
||||||
Log(LogInformation, "ApiClient")
|
Log(LogInformation, "ApiClient")
|
||||||
<< "No messages for identity '" << m_Identity << "' have been received in the last 60 seconds.";
|
<< "No messages for identity '" << m_Identity << "' have been received in the last 60 seconds.";
|
||||||
Disconnect();
|
Utility::QueueAsyncCallback(boost::bind(&ApiClient::Disconnect, ApiClient::Ptr(this)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user