Exemplo n.º 1
0
        public void Destroy()
        {
            try
            {
                TcpClient?.Client?.Close();
                TcpClient = null;

                RestartableStream?.Close();
                RestartableStream = null;

                Stream?.Close();
                Stream = null;

                Buffer = null;
            }
            catch
            {

            }
        }
Exemplo n.º 2
0
        public void Destroy()
        {
            try
            {
                TcpClient?.Client?.Close();
                TcpClient = null;

                RestartableStream?.Close();
                RestartableStream = null;


                Stream?.Close();
                Stream = null;

                Buffer = null;
            }
            catch
            {
            }
        }