mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
capture by value not reference
This commit is contained in:
parent
cbb1d2d3b5
commit
2940f0d67c
@ -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…
Reference in New Issue
Block a user