fixed crash

This commit is contained in:
orignal 2017-01-04 20:55:18 -05:00
parent 025d9d3276
commit 723f35ec5a

View File

@ -178,7 +178,7 @@ namespace client
{
if (bytes_transferred > 0)
Write (m_StreamBuffer, bytes_transferred); // postpone termination
else if (ecode == boost::asio::error::timed_out && m_Stream->IsOpen ())
else if (ecode == boost::asio::error::timed_out && m_Stream && m_Stream->IsOpen ())
StreamReceive ();
else
Terminate ();