mafintosh / discovery-swarm

A network swarm that uses discovery-channel to find peers
MIT License
374 stars 57 forks source link

swarm.join callback triggers multiple times when utp set to false #21

Open scriptjs opened 7 years ago

scriptjs commented 7 years ago

The api for the swarm join provides a callback that is to be triggered only once after initial discovery. This works as advertised when using default options or utp set to true. When utp is set to false, it is initially triggered and the callback gets recalled on an interval.