futomi / node-dns-sd

The node-dns-sd is a Node.js module which is a pure javascript implementation of mDNS/DNS-SD (Apple Bonjour) browser and packet parser. It allows you to discover IPv4 addresses in the local network specifying a service name such as _http._tcp.local. Besides, it allows you to monitor mDNS/DNS-SD packets.
MIT License
44 stars 11 forks source link

Discovery goes on forever #3

Open SiemsSISC opened 5 years ago

SiemsSISC commented 5 years ago

Hi. I'm running this library in an Electron app but the promise for discover() is never resolved. I've been able to trace it to: this._udp.close() never calling the callback cleanObj(). So, the promise just remains unsolved forever. The app seems to be working on my Macbook Air, but not on my main Windows 10 machine. What's really strange is that it does work in another project on my Windows 10 machine. The only difference between the two projects (code is the same) is that I'm running one directly via Node and the other via Electron.