From a8acb8ebb40184933e6df0fa4e86ed7fc588438e Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 1 Nov 2014 17:15:59 -0400 Subject: [PATCH] fixed double deletion --- NTCPSession.cpp | 5 +++-- version.h | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/NTCPSession.cpp b/NTCPSession.cpp index 4afe4942..ee6dde07 100644 --- a/NTCPSession.cpp +++ b/NTCPSession.cpp @@ -427,7 +427,7 @@ namespace transport if (ecode) { LogPrint ("Read error: ", ecode.message ()); - if (ecode != boost::asio::error::operation_aborted) + //if (ecode != boost::asio::error::operation_aborted) Terminate (); } else @@ -589,7 +589,8 @@ namespace transport if (ecode != boost::asio::error::operation_aborted) { LogPrint ("No activity fo ", NTCP_TERMINATION_TIMEOUT, " seconds"); - Terminate (); + //Terminate (); + m_Socket.close ();// invoke Terminate () from HandleReceive } } diff --git a/version.h b/version.h index b12cb897..b6e06b5c 100644 --- a/version.h +++ b/version.h @@ -2,7 +2,7 @@ #define _VERSION_H_ #define CODENAME "Purple" -#define VERSION "0.2.0" +#define VERSION "0.2.1" #define I2P_VERSION "0.9.15" #endif