示例#1
0
        public void Destroy()
        {
            try
            {
                TcpClient?.Client?.Close();
                TcpClient = null;

                RestartableStream?.Close();
                RestartableStream = null;

                Stream?.Close();
                Stream = null;

                Buffer = null;
            }
            catch
            {

            }
        }
示例#2
0
        public void Destroy()
        {
            try
            {
                TcpClient?.Client?.Close();
                TcpClient = null;

                RestartableStream?.Close();
                RestartableStream = null;


                Stream?.Close();
                Stream = null;

                Buffer = null;
            }
            catch
            {
            }
        }