Sfoglia il codice sorgente

Fix infinite loop bug introduced in last commit.

Adam Ierymenko 11 anni fa
parent
commit
d7bc3c6f4a
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      node/Topology.cpp

+ 2 - 0
node/Topology.cpp

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