mirror of https://github.com/Icinga/icinga2.git
parent
d084effa4b
commit
c439ee6d9f
|
@ -260,6 +260,9 @@ Value RequestCertificateHandler(const MessageOrigin& origin, const Dictionary::P
|
|||
void ApiClient::TimeoutTimerHandler(void)
|
||||
{
|
||||
if (m_Seen < Utility::GetTime() - 60) {
|
||||
/* Obtain a strong reference to ourselves because Disconnect otherwise removes the last reference */
|
||||
ApiClient::Ptr self = this;
|
||||
|
||||
Log(LogInformation, "ApiClient")
|
||||
<< "No messages for identity '" << m_Identity << "' have been received in the last 60 seconds.";
|
||||
Disconnect();
|
||||
|
|
Loading…
Reference in New Issue