Wait until we have more than a single addr response
This commit is contained in:
parent
c36ed80739
commit
a9e960a4dd
1 changed files with 3 additions and 1 deletions
|
@ -136,7 +136,9 @@ class CNode {
|
|||
// printf("%s: got %i addresses\n", ToString(you).c_str(), (int)vAddrNew.size());
|
||||
int64 now = time(NULL);
|
||||
vector<CAddress>::iterator it = vAddrNew.begin();
|
||||
if (vAddrNew.size() > 1) {
|
||||
if (doneAfter == 0 || doneAfter > now + 1) doneAfter = now + 1;
|
||||
}
|
||||
while (it != vAddrNew.end()) {
|
||||
CAddress &addr = *it;
|
||||
// printf("%s: got address %s\n", ToString(you).c_str(), addr.ToString().c_str(), (int)(vAddr->size()));
|
||||
|
|
Loading…
Reference in a new issue