mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
call stream request callback after CreateStream
This commit is contained in:
parent
9fd60b52f1
commit
85b78dfb9b
@ -1096,7 +1096,13 @@ namespace client
|
|||||||
}
|
}
|
||||||
auto leaseSet = FindLeaseSet (dest);
|
auto leaseSet = FindLeaseSet (dest);
|
||||||
if (leaseSet)
|
if (leaseSet)
|
||||||
streamRequestComplete(CreateStream (leaseSet, port));
|
{
|
||||||
|
auto stream = CreateStream (leaseSet, port);
|
||||||
|
GetService ().post ([streamRequestComplete, stream]()
|
||||||
|
{
|
||||||
|
streamRequestComplete(stream);
|
||||||
|
});
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto s = GetSharedFromThis ();
|
auto s = GetSharedFromThis ();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user