mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 07:34:15 +02:00
Revert "Fix another deadlock in ApiClient::SendMessage"
This reverts commit a0c09303251d22738f82a9c35a66d327c98699a3.
This commit is contained in:
parent
1723d97ed0
commit
8b1579381e
@ -67,7 +67,7 @@ ConnectionRole ApiClient::GetRole(void) const
|
|||||||
void ApiClient::SendMessage(const Dictionary::Ptr& message)
|
void ApiClient::SendMessage(const Dictionary::Ptr& message)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
boost::mutex::scoped_lock lock(m_WriteMutex);
|
ObjectLock olock(m_Stream);
|
||||||
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();
|
||||||
|
@ -58,7 +58,6 @@ public:
|
|||||||
void SendMessage(const Dictionary::Ptr& request);
|
void SendMessage(const Dictionary::Ptr& request);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
boost::mutex m_WriteMutex;
|
|
||||||
String m_Identity;
|
String m_Identity;
|
||||||
Endpoint::Ptr m_Endpoint;
|
Endpoint::Ptr m_Endpoint;
|
||||||
Stream::Ptr m_Stream;
|
Stream::Ptr m_Stream;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user