Browse Source

fix example

patch-2
Gordon Hall 11 years ago
parent
commit
8b17591661
  1. 2
      examples/PeerDiscovery.js

2
examples/PeerDiscovery.js

@ -5,7 +5,7 @@ peerman.discoverPeers(function(err, peers) {
// we can use this array of peers to add to the manager // we can use this array of peers to add to the manager
// but let's limit it to 6 connections for this example // but let's limit it to 6 connections for this example
var p = 0; 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 // then we can start the manager
peerman.start(); peerman.start();
}); });

Loading…
Cancel
Save