Browse Source

call stream request callback after CreateStream

pull/1804/head
orignal 2 years ago
parent
commit
85b78dfb9b
  1. 8
      libi2pd/Destination.cpp

8
libi2pd/Destination.cpp

@ -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…
Cancel
Save