mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-23 17:36:37 +02:00
parent
4e4def4fb9
commit
a6f62a99b9
1 changed files with 2 additions and 3 deletions
|
@ -869,12 +869,11 @@ namespace client
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// call later if tunnel is not ready
|
// call later if tunnel is not ready
|
||||||
auto s = GetSharedFromThis();
|
AddReadyCallback([&](const boost::system::error_code & ec) {
|
||||||
AddReadyCallback([s, streamRequestComplete, dest, port](const boost::system::error_code & ec) {
|
|
||||||
if(ec)
|
if(ec)
|
||||||
streamRequestComplete(nullptr);
|
streamRequestComplete(nullptr);
|
||||||
else
|
else
|
||||||
s->CreateStream(streamRequestComplete, dest, port);
|
CreateStream(streamRequestComplete, dest, port);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue