TlsStream#IsEof(): fix false positive EOF indicator

refs #6242
This commit is contained in:
Alexander A. Klimov 2018-06-20 16:55:33 +02:00
parent 89033343e8
commit 3c7851107c
1 changed files with 1 additions and 1 deletions

View File

@ -393,7 +393,7 @@ void TlsStream::CloseInternal(bool inDestructor)
bool TlsStream::IsEof() const
{
return m_Eof;
return m_Eof && m_RecvQ->GetAvailableBytes() < 1u;
}
bool TlsStream::SupportsWaiting() const