1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-31 00:34:20 +00:00

Revert "use shared from this"

This reverts commit 4e4def4fb90f8a0cb1faf61a935479f7527168bf.
This commit is contained in:
Jeff Becker 2017-08-31 10:37:53 -04:00
parent 4e4def4fb9
commit a6f62a99b9
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

View File

@ -869,12 +869,11 @@ namespace client
else
{
// call later if tunnel is not ready
auto s = GetSharedFromThis();
AddReadyCallback([s, streamRequestComplete, dest, port](const boost::system::error_code & ec) {
AddReadyCallback([&](const boost::system::error_code & ec) {
if(ec)
streamRequestComplete(nullptr);
else
s->CreateStream(streamRequestComplete, dest, port);
CreateStream(streamRequestComplete, dest, port);
});
}
}