mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-28 16:14:09 +02:00
parent
308ba45102
commit
9a06b09366
@ -79,6 +79,8 @@ void ApiClient::SendMessageSync(const Dictionary::Ptr& message)
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectLock olock(m_Stream);
|
ObjectLock olock(m_Stream);
|
||||||
|
if (m_Stream->IsEof())
|
||||||
|
return;
|
||||||
JsonRpc::SendMessage(m_Stream, message);
|
JsonRpc::SendMessage(m_Stream, message);
|
||||||
if (message->Get("method") != "log::SetLogPosition")
|
if (message->Get("method") != "log::SetLogPosition")
|
||||||
m_Seen = Utility::GetTime();
|
m_Seen = Utility::GetTime();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user