mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 17:04:13 +00:00
use shared from this
This commit is contained in:
parent
7af3b751d4
commit
4e4def4fb9
@ -869,11 +869,12 @@ namespace client
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// call later if tunnel is not ready
|
// call later if tunnel is not ready
|
||||||
AddReadyCallback([&](const boost::system::error_code & ec) {
|
auto s = GetSharedFromThis();
|
||||||
|
AddReadyCallback([s, streamRequestComplete, dest, port](const boost::system::error_code & ec) {
|
||||||
if(ec)
|
if(ec)
|
||||||
streamRequestComplete(nullptr);
|
streamRequestComplete(nullptr);
|
||||||
else
|
else
|
||||||
CreateStream(streamRequestComplete, dest, port);
|
s->CreateStream(streamRequestComplete, dest, port);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user