Browse Source

capture by value not reference

pull/881/head
Jeff Becker 8 years ago
parent
commit
2940f0d67c
  1. 2
      libi2pd/NTCPSession.cpp

2
libi2pd/NTCPSession.cpp

@ -1013,7 +1013,7 @@ namespace transport @@ -1013,7 +1013,7 @@ namespace transport
void NTCPServer::Connect(const boost::asio::ip::address & address, uint16_t port, std::shared_ptr<NTCPSession> conn)
{
LogPrint (eLogDebug, "NTCP: Connecting to ", address ,":", port);
m_Service.post([&]() {
m_Service.post([=]() {
if (this->AddNTCPSession (conn))
{

Loading…
Cancel
Save