mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-12 20:36:38 +01:00
use shared from this
This commit is contained in:
parent
7af3b751d4
commit
4e4def4fb9
1 changed files with 3 additions and 2 deletions
|
@ -869,11 +869,12 @@ namespace client
|
|||
else
|
||||
{
|
||||
// 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)
|
||||
streamRequestComplete(nullptr);
|
||||
else
|
||||
CreateStream(streamRequestComplete, dest, port);
|
||||
s->CreateStream(streamRequestComplete, dest, port);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue