diff --git a/JiLinApp.Docking/VibrateAlarm/Service/AsyncTcpServer.cs b/JiLinApp.Docking/VibrateAlarm/Service/AsyncTcpServer.cs index 196bc5f..e12d00a 100644 --- a/JiLinApp.Docking/VibrateAlarm/Service/AsyncTcpServer.cs +++ b/JiLinApp.Docking/VibrateAlarm/Service/AsyncTcpServer.cs @@ -231,7 +231,7 @@ public class AsyncTcpServer : IDisposable } catch (Exception) { - throw; + return; } if (readBytesNum == 0) { @@ -307,7 +307,6 @@ public class AsyncTcpServer : IDisposable } catch (Exception) { - throw; } } @@ -363,7 +362,6 @@ public class AsyncTcpServer : IDisposable } catch (Exception) { - throw; } } @@ -402,7 +400,13 @@ public class AsyncTcpServer : IDisposable private void HandleDatagramWritten(IAsyncResult ar) { - (ar.AsyncState as TcpClient)?.GetStream().EndWrite(ar); + try + { + (ar.AsyncState as TcpClient)?.GetStream().EndWrite(ar); + } + catch (Exception) + { + } } #endregion Send