mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-04 19:25:51 +00:00
Fix the assert on a self-connect
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user