From cfde1f8c2716644932d14c19ff75dbfb2d090b30 Mon Sep 17 00:00:00 2001 From: orignal Date: Tue, 13 Dec 2016 12:44:05 -0500 Subject: [PATCH] rollback --- I2PTunnel.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/I2PTunnel.cpp b/I2PTunnel.cpp index fdc5bc52..c98fb8c8 100644 --- a/I2PTunnel.cpp +++ b/I2PTunnel.cpp @@ -92,15 +92,9 @@ namespace client m_Stream->Close (); m_Stream.reset (); } - auto s = shared_from_this (); - // make sure all outstading jobs finished before close - m_Socket->get_io_service ().post( - [s]() - { - s->m_Socket->close (); - }); + m_Socket->close (); - Done(s); + Done(shared_from_this ()); } void I2PTunnelConnection::Receive ()