Quick and dirty possible fix.

This commit is contained in:
JoelKatz
2013-01-25 17:03:44 -08:00
parent 1653709dc2
commit 9f61d9514c

View File

@@ -894,7 +894,8 @@ public:
// try and read more
if (m_state != session::state::CLOSED &&
m_processor->get_bytes_needed() > 0 &&
m_processor &&
m_processor->get_bytes_needed() > 0 && // FIXME: m_processor had been reset here
!m_protocol_error)
{
// TODO: read timeout timer?