diff --git a/ConnectionPool.cpp b/ConnectionPool.cpp index 25854d0a3..e6c0a1755 100644 --- a/ConnectionPool.cpp +++ b/ConnectionPool.cpp @@ -98,5 +98,6 @@ bool ConnectionPool::connectTo(const std::string& host, const std::string& port) if(error) return false; boost::mutex::scoped_lock sl(peerLock); mPeers.push_back(peer); + peer->connected(boost::system::error_code()); return true; }