Browse Source

fixed crash

pull/766/head
orignal 8 years ago
parent
commit
723f35ec5a
  1. 2
      I2PTunnel.cpp

2
I2PTunnel.cpp

@ -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…
Cancel
Save