mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
parent
4c011c5eaa
commit
f4dce0fe72
@ -83,11 +83,7 @@ void HttpServerConnection::Disconnect(void)
|
||||
m_CurrentRequest.~HttpRequest();
|
||||
new (&m_CurrentRequest) HttpRequest(Stream::Ptr());
|
||||
|
||||
{
|
||||
Stream::Ptr stream = m_Stream;
|
||||
m_Stream.reset();
|
||||
stream->Close();
|
||||
}
|
||||
m_Stream->Close();
|
||||
}
|
||||
|
||||
bool HttpServerConnection::ProcessMessage(void)
|
||||
@ -211,9 +207,6 @@ void HttpServerConnection::DataAvailableHandler(void)
|
||||
{
|
||||
bool close = false;
|
||||
|
||||
if (!m_Stream)
|
||||
return;
|
||||
|
||||
if (!m_Stream->IsEof()) {
|
||||
boost::mutex::scoped_lock lock(m_DataHandlerMutex);
|
||||
|
||||
|
@ -129,11 +129,7 @@ void JsonRpcConnection::Disconnect(void)
|
||||
Log(LogWarning, "JsonRpcConnection")
|
||||
<< "API client disconnected for identity '" << m_Identity << "'";
|
||||
|
||||
{
|
||||
Stream::Ptr stream = m_Stream;
|
||||
m_Stream.reset();
|
||||
stream->Close();
|
||||
}
|
||||
m_Stream->Close();
|
||||
|
||||
if (m_Endpoint)
|
||||
m_Endpoint->RemoveClient(this);
|
||||
|
Loading…
x
Reference in New Issue
Block a user