From 2940f0d67cfe58e743b737a765c064610c654ac7 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 29 May 2017 01:53:34 -0400 Subject: [PATCH] capture by value not reference --- libi2pd/NTCPSession.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libi2pd/NTCPSession.cpp b/libi2pd/NTCPSession.cpp index de7901e0..558eea6b 100644 --- a/libi2pd/NTCPSession.cpp +++ b/libi2pd/NTCPSession.cpp @@ -1013,7 +1013,7 @@ namespace transport void NTCPServer::Connect(const boost::asio::ip::address & address, uint16_t port, std::shared_ptr conn) { LogPrint (eLogDebug, "NTCP: Connecting to ", address ,":", port); - m_Service.post([&]() { + m_Service.post([=]() { if (this->AddNTCPSession (conn)) {