projects
/
icinga2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
308ba45
)
ApiClient: Don't try to write to closed streams
author
Gunnar Beutner
<gunnar.beutner@netways.de>
Tue, 9 Sep 2014 13:12:39 +0000
(15:12 +0200)
committer
Gunnar Beutner
<gunnar.beutner@netways.de>
Tue, 9 Sep 2014 13:12:39 +0000
(15:12 +0200)
refs #6892
lib/remote/apiclient.cpp
patch
|
blob
|
history
diff --git
a/lib/remote/apiclient.cpp
b/lib/remote/apiclient.cpp
index 7591be6ec118a3d166a80acdec87f981b5db6a5d..cc0e7a4a43f77d6eda39319b759634e14bd69ff1 100644
(file)
--- 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();