Skip to content

Commit

Permalink
Don't re-announce destroyed services
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Dec 27, 2015
1 parent 01be4be commit 664f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function announce (server, service) {

;(function broadcast () {
// abort if the service have or is being stopped in the meantime
if (!service._activated) return
if (!service._activated || service._destroyed) return

server.mdns.respond(packet, function () {
// This function will optionally be called with an error object. We'll
Expand Down

0 comments on commit 664f40c

Please sign in to comment.