From 955ce4544880fe2cc996393f0ac8de8b7bf5c4a9 Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Mon, 24 Feb 2014 22:30:04 -0800 Subject: [PATCH] Fix the assert on a self-connect --- src/ripple/peerfinder/impl/Logic.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ripple/peerfinder/impl/Logic.h b/src/ripple/peerfinder/impl/Logic.h index 1c0a1a005..947be01a9 100644 --- a/src/ripple/peerfinder/impl/Logic.h +++ b/src/ripple/peerfinder/impl/Logic.h @@ -280,7 +280,8 @@ public: if (iter != state->slots.end ()) { Slot::ptr const& self (iter->second); - assert (self->local_endpoint () == remote_endpoint); + assert ((self->local_endpoint () == boost::none) || + (self->local_endpoint () == remote_endpoint)); if (m_journal.warning) m_journal.warning << leftw (18) << "Logic dropping " << remote_endpoint << " as self connect";