Release PeerFinder slot on error

This commit is contained in:
Vinnie Falco
2015-09-25 14:39:14 -07:00
committed by Nik Bougalis
parent bd3e4ac11c
commit ac9816c01d

View File

@@ -256,6 +256,7 @@ OverlayImpl::onHandoff (std::unique_ptr <beast::asio::ssl_bundle>&& ssl_bundle,
publicKey.toPublicKey(), cluster);
if (result != PeerFinder::Result::success)
{
m_peerFinder->on_closed(slot);
if (journal.debug) journal.debug <<
"Peer " << remote_endpoint << " redirected, slots full";
handoff.moved = false;