From 723f35ec5aa02ac84133c04eaa261a1677118f89 Mon Sep 17 00:00:00 2001 From: orignal Date: Wed, 4 Jan 2017 20:55:18 -0500 Subject: [PATCH] fixed crash --- I2PTunnel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ();