Fix infinite loop bug introduced in last commit.

This commit is contained in:
Adam Ierymenko 2014-02-03 12:28:23 -08:00
parent d04e5a1fe0
commit d7bc3c6f4a

View File

@ -172,6 +172,8 @@ SharedPtr<Peer> Topology::getBestSupernode(const Address *avoid,unsigned int avo
bestSupernode = *sn;
}
}
++sn;
}
if (bestSupernode) {