Skip to content

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