Improve addNode functionality when addNode is called during network startup.

This commit is contained in:
subtly 2015-04-05 15:49:53 +02:00
parent 985271d8fc
commit a8c8d5ece5

View File

@ -75,7 +75,7 @@ BOOST_AUTO_TEST_CASE(save_nodes)
h->setIdealPeerCount(10);
// starting host is required so listenport is available
h->start();
while (!h->isStarted())
while (!h->haveNetwork())
this_thread::sleep_for(chrono::milliseconds(2));
hosts.push_back(h);
}