Fix the assert on a self-connect

This commit is contained in:
JoelKatz
2014-02-24 22:30:04 -08:00
parent 995e64a205
commit 955ce45448

View File

@@ -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";