diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index e94b5ed4..1a01a3c4 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -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 ();