Browse Source

Revert "use shared from this"

This reverts commit 4e4def4fb9.
pull/940/head
Jeff Becker 7 years ago
parent
commit
a6f62a99b9
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
  1. 5
      libi2pd/Destination.cpp

5
libi2pd/Destination.cpp

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