]> git.deb.at Git - rhonda/impostor.hazel.git/commitdiff
Caught unhandled exception
authorJamJar00 <jamster.30@btinternet.com>
Sun, 8 Jan 2017 21:33:35 +0000 (21:33 +0000)
committerJamJar00 <jamster.30@btinternet.com>
Sun, 8 Jan 2017 21:33:35 +0000 (21:33 +0000)
Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg [deleted file]
Hazel/Udp/UdpConnectionListener.cs

diff --git a/Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg b/Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg
deleted file mode 100644 (file)
index fe5df70..0000000
Binary files a/Hazel/DarkRiftNetworking.Hazel.0.1.0-beta.nupkg and /dev/null differ
index 6ad04e75c52b887c11c6e8af441ce3141fee93a9..e1ccb711f83f832bee39357ca8c7ce8ebec2d61e 100644 (file)
@@ -95,6 +95,13 @@ namespace Hazel.Udp
             {
                 return;
             }
+            catch (SocketException)
+            {
+                //Client no longer reachable, pretend it didn't happen
+                //TODO possibly able to disconnect client, see other TODO
+                StartListeningForData();
+                return;
+            }
         }
 
         /// <summary>
@@ -121,6 +128,10 @@ namespace Hazel.Udp
             {
                 //Client no longer reachable, pretend it didn't happen
                 //TODO should this not inform the connection this client is lost???
+
+                //This thread suggests the IP is not passed out from WinSoc so maybe not
+                //http://stackoverflow.com/questions/2576926/python-socket-error-on-udp-data-receive-10054
+
                 StartListeningForData();
                 return;
             }