Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix #125 avahi probe

Test status before deallocating.
commit 7295c87d59c3e493005f15d59a190022c2986a2a 1 parent 1b786a2
@agnat authored
Showing with 4 additions and 2 deletions.
  1. +3 −1 lib/avahi.js
  2. +1 −1  package.json
View
4 lib/avahi.js
@@ -18,7 +18,9 @@ function supportsInterfaceIndexLocalOnly() {
host, port, txtRec, cb, ctx);
} catch (ex) {
if (ex.errorCode === dns_sd.kDNSServiceErr_Unsupported) {
- dns_sd.DNSServiceRefDeallocate(sr);
+ if (sr && sr.initialized) {
+ dns_sd.DNSServiceRefDeallocate(sr);
+ }
return false;
}
console.warn('Unexpected result while probing for avahi:', ex);
View
2  package.json
@@ -1,5 +1,5 @@
{ "name": "mdns"
-, "version": "2.2.7"
+, "version": "2.2.8"
, "description": "multicast DNS service discovery"
, "main": "./lib/mdns.js"
, "scripts":
Please sign in to comment.
Something went wrong with that request. Please try again.