mirror of https://github.com/Icinga/icinga2.git
parent
1c7a0d03a1
commit
8903c7e379
|
@ -160,12 +160,11 @@ void TlsStream::OnEvent(int revents)
|
|||
|
||||
break;
|
||||
case TlsActionClose:
|
||||
rc = SSL_shutdown(m_SSL.get());
|
||||
(void) SSL_shutdown(m_SSL.get());
|
||||
rc = 1;
|
||||
|
||||
if (rc > 0) {
|
||||
m_CloseOK = true;
|
||||
m_CV.notify_all();
|
||||
}
|
||||
m_CloseOK = true;
|
||||
m_CV.notify_all();
|
||||
|
||||
break;
|
||||
default:
|
||||
|
@ -307,4 +306,4 @@ bool TlsStream::IsDataAvailable(void) const
|
|||
boost::mutex::scoped_lock lock(m_Mutex);
|
||||
|
||||
return m_RecvQ->GetAvailableBytes() > 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue