diff --git a/lib/remote/apiclient.cpp b/lib/remote/apiclient.cpp index 7591be6ec..cc0e7a4a4 100644 --- a/lib/remote/apiclient.cpp +++ b/lib/remote/apiclient.cpp @@ -79,6 +79,8 @@ void ApiClient::SendMessageSync(const Dictionary::Ptr& message) { try { ObjectLock olock(m_Stream); + if (m_Stream->IsEof()) + return; JsonRpc::SendMessage(m_Stream, message); if (message->Get("method") != "log::SetLogPosition") m_Seen = Utility::GetTime();