ApiClient: Don't try to write to closed streams

refs #6892
This commit is contained in:
Gunnar Beutner 2014-09-09 15:12:39 +02:00
parent 308ba45102
commit 9a06b09366
1 changed files with 2 additions and 0 deletions

View File

@ -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();