holepunchto / hyperswarm

A distributed networking stack for connecting peers.
https://docs.holepunch.to
MIT License
1.04k stars 84 forks source link

Add a destroy function #16

Closed AcidLeroy closed 5 years ago

AcidLeroy commented 5 years ago

Signed-off-by: Cody W. Eilar Cody.Eilar@Gmail.com

bencevans commented 5 years ago

This doesn't appear to destroy if announce is set to true on any network joins.

AcidLeroy commented 5 years ago

@bencevans That's unfortunate. I guess I didn't test with that setting. When I have some time I'll take a look at getting the test to pass with both announce: true and announce: false

mafintosh commented 5 years ago

Fixed in latest