Skip to content

Add Network up check #29

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

remco1271
Copy link

Fix crash when network is down.
Checks first if network is up before sending data
Because you can't open a socket on a network interface that is down.

Fix crash when network is down.
Checks first if network is up before sending data
@whysguy52
Copy link

can a similar change be made to the EEIPClient.cs in the EEIP.dll?

something like this?

if (networkInterface.OperationalStatus != OperationalStatus.Up || networkInterface.NetworkInterfaceType != NetworkInterfaceType.Wireless80211 && networkInterface.NetworkInterfaceType != NetworkInterfaceType.Ethernet)
{
    continue;
}

I currently have the method copied and pasted into my own class and just doing the extra check but would be cool if it was in the source file.

:) love this library btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants