holepunchto / hyperdht

The DHT powering Hyperswarm
https://docs.holepunch.to
MIT License
323 stars 46 forks source link

Declare query and holepunch before reference to ontimeout #47

Closed 4c656554 closed 3 years ago

4c656554 commented 3 years ago

Re issue #44

mafintosh commented 3 years ago

In ontimeout you need to check if holepunch and query are set as well before destroying them, ie

if (holepunch) holepunch.destroy()
4c656554 commented 3 years ago

Made a new commit...

mafintosh commented 3 years ago

Awesome, will merge on green ci :)