-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added using of NetworkChange.NetworkAddressChanged instead of Timer #36
Added using of NetworkChange.NetworkAddressChanged instead of Timer #36
Conversation
Fixed AnswersContainsAdditionalRecords functionality
It's failing on MAC OS X, see the CI build |
NetworkInterfaceDiscovered?.Invoke(this, new NetworkInterfaceEventArgs | ||
{ | ||
NetworkInterfaces = newNics | ||
}); | ||
} | ||
|
||
NetworkChange.NetworkAddressChanged -= OnNetworkAddressChanged; | ||
NetworkChange.NetworkAddressChanged += OnNetworkAddressChanged; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why removing then adding again?
@@ -592,11 +567,10 @@ async void Listener() | |||
// eat the exception | |||
} | |||
|
|||
receiver.Dispose(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the receiver be disposed?
mdns.NetworkInterfaceDiscovered += (s, e) => | ||
{ | ||
sd.QueryServiceInstances(service.ServiceName); | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not be changing the existing tests. This implies a breaking change.
Fixed AnswersContainsAdditionalRecords functionality