mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 00:00:29 +03:00
fixed crash
This commit is contained in:
parent
025d9d3276
commit
723f35ec5a
@ -178,7 +178,7 @@ namespace client
|
|||||||
{
|
{
|
||||||
if (bytes_transferred > 0)
|
if (bytes_transferred > 0)
|
||||||
Write (m_StreamBuffer, bytes_transferred); // postpone termination
|
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 ();
|
StreamReceive ();
|
||||||
else
|
else
|
||||||
Terminate ();
|
Terminate ();
|
||||||
|
Loading…
Reference in New Issue
Block a user