BotVentic.Program.KeepConnectionAlive C# (CSharp) Method

KeepConnectionAlive() private static method

private static KeepConnectionAlive ( ) : void
return void
        private static void KeepConnectionAlive()
        {
            while (true)
            {
                ConnectAsync();
                while (State != ConnectionState.Disconnected)
                    Thread.Sleep(1000);
                Thread.Sleep(5000);
            }
        }