From: JamJar00 Date: Sun, 8 Jan 2017 21:30:51 +0000 (+0000) Subject: Unhandled exception caught X-Git-Tag: 1.0.0~111 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=c290203e94c6e56b71872cc59d21c04eb35edd0b;p=rhonda%2Fimpostor.hazel.git Unhandled exception caught --- diff --git a/Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg b/Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg deleted file mode 100644 index fe5df70..0000000 Binary files a/Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg and /dev/null differ diff --git a/Hazel/DarkRiftNetworking.Hazel.0.1.1-beta.nupkg b/Hazel/DarkRiftNetworking.Hazel.0.1.1-beta.nupkg new file mode 100644 index 0000000..15dadd2 Binary files /dev/null and b/Hazel/DarkRiftNetworking.Hazel.0.1.1-beta.nupkg differ diff --git a/Hazel/Udp/UdpConnectionListener.cs b/Hazel/Udp/UdpConnectionListener.cs index 6ad04e7..1363446 100644 --- a/Hazel/Udp/UdpConnectionListener.cs +++ b/Hazel/Udp/UdpConnectionListener.cs @@ -95,6 +95,14 @@ namespace Hazel.Udp { return; } + catch (SocketException) + { + //Client no longer reachable, pretend it didn't happen + //TODO possibly able to disconnect failed client from this, see other TODO. + + StartListeningForData(); + return; + } } /// @@ -121,6 +129,11 @@ namespace Hazel.Udp { //Client no longer reachable, pretend it didn't happen //TODO should this not inform the connection this client is lost??? + + //Note, this thread suggests that the IP is not passed back from WinSoc on ICMP receipt so + //more research is probably needed to answer that, provisionally no. :( + //http://stackoverflow.com/questions/2576926/python-socket-error-on-udp-data-receive-10054 + StartListeningForData(); return; }