From f7c7469659f2d4d2ad5ebd91ca4950d4241b6e89 Mon Sep 17 00:00:00 2001 From: AlexMcBride Date: Mon, 13 Oct 2014 17:13:20 +0100 Subject: [PATCH] Tweaked packet error handling. --- InSimDotNet/TcpSocket.cs | 1 - InSimDotNet/UdpSocket.cs | 1 - 2 files changed, 2 deletions(-) diff --git a/InSimDotNet/TcpSocket.cs b/InSimDotNet/TcpSocket.cs index 061c813..0631f20 100644 --- a/InSimDotNet/TcpSocket.cs +++ b/InSimDotNet/TcpSocket.cs @@ -214,7 +214,6 @@ private async void ReceiveAsync() { Debug.WriteLine(String.Format(StringResources.TcpSocketDebugErrorMessage, ex)); Dispose(); OnSocketError(new InSimErrorEventArgs(ex)); - throw; } } } diff --git a/InSimDotNet/UdpSocket.cs b/InSimDotNet/UdpSocket.cs index 98227ae..2b9cfb7 100644 --- a/InSimDotNet/UdpSocket.cs +++ b/InSimDotNet/UdpSocket.cs @@ -172,7 +172,6 @@ private async void ReceiveAsync() { Debug.WriteLine(String.Format(StringResources.UdpSocketDebugErrorMessage, ex)); Dispose(); OnSocketError(new InSimErrorEventArgs(ex)); - throw; } } }