Merge pull request #798 from majestrate/master

fix handover drop bug
pull/799/head
Jeff 5 years ago committed by GitHub
commit dcdc7dc904
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -135,7 +135,7 @@ namespace llarp
util::memFn(&OutboundContext::HandleHiddenServiceFrame, this)); util::memFn(&OutboundContext::HandleHiddenServiceFrame, this));
p->SetDropHandler(util::memFn(&OutboundContext::HandleDataDrop, this)); p->SetDropHandler(util::memFn(&OutboundContext::HandleDataDrop, this));
// we now have a path to the next intro, swap intros // we now have a path to the next intro, swap intros
if(p->Endpoint() == m_NextIntro.router && remoteIntro.router.IsZero()) if(p->Endpoint() == m_NextIntro.router)
SwapIntros(); SwapIntros();
} }

@ -53,7 +53,7 @@ TYPED_TEST_SUITE_P(MemFnType);
TYPED_TEST_P(MemFnType, Smoke) TYPED_TEST_P(MemFnType, Smoke)
{ {
TypeParam foo; TypeParam foo{};
ASSERT_TRUE(util::memFn(&Foo::constEmpty, foo)()); ASSERT_TRUE(util::memFn(&Foo::constEmpty, foo)());
ASSERT_TRUE(util::memFn(&Foo::constEmpty, &foo)()); ASSERT_TRUE(util::memFn(&Foo::constEmpty, &foo)());
} }

Loading…
Cancel
Save