private void RaiseErrorEvent(FileSenderErrorArgs arg) { SendingError?.Invoke(arg); if (arg.IsCritical) { SenderThread?.Abort(); TimerThread.Abort(); } }
protected void StartSendThread() { m_sender = new SenderThread(m_tcpClient.GetStream(), sendMsgs); m_sender.Run(); }