mirror of https://github.com/Icinga/icinga2.git
parent
541dacb636
commit
6455c51777
|
@ -94,6 +94,11 @@ void ApiClient::SendMessageSync(const Dictionary::Ptr& message)
|
|||
}
|
||||
|
||||
void ApiClient::Disconnect(void)
|
||||
{
|
||||
Utility::QueueAsyncCallback(boost::bind(&ApiClient::DisconnectSync, this));
|
||||
}
|
||||
|
||||
void ApiClient::DisconnectSync(void)
|
||||
{
|
||||
Log(LogWarning, "ApiClient", "API client disconnected for identity '" + m_Identity + "'");
|
||||
|
||||
|
|
|
@ -55,6 +55,7 @@ public:
|
|||
ConnectionRole GetRole(void) const;
|
||||
|
||||
void Disconnect(void);
|
||||
void DisconnectSync(void);
|
||||
|
||||
void SendMessage(const Dictionary::Ptr& request);
|
||||
|
||||
|
|
Loading…
Reference in New Issue