From 8b17591661dadbb02e3e9ab252482cc3d5d41617 Mon Sep 17 00:00:00 2001 From: Gordon Hall Date: Sat, 19 Apr 2014 16:46:00 -0400 Subject: [PATCH] fix example --- examples/PeerDiscovery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/PeerDiscovery.js b/examples/PeerDiscovery.js index 6440718ca..266269881 100644 --- a/examples/PeerDiscovery.js +++ b/examples/PeerDiscovery.js @@ -5,7 +5,7 @@ peerman.discoverPeers(function(err, peers) { // we can use this array of peers to add to the manager // but let's limit it to 6 connections for this example var p = 0; - do { peerman.addPeer(peers[p]); p++; } while (p <= 6); + do { peerman.addPeer(peers[p]); p++; } while (p < 6); // then we can start the manager peerman.start(); });