From f4bc6bfe68b7aa61fffc410cafaadd60f7e2b7eb Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 15 Aug 2024 16:55:40 +0100 Subject: [PATCH] adjust auto recovery --- SecondBotEvents/Services/BotClientService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SecondBotEvents/Services/BotClientService.cs b/SecondBotEvents/Services/BotClientService.cs index e106bbb..b9b4d75 100644 --- a/SecondBotEvents/Services/BotClientService.cs +++ b/SecondBotEvents/Services/BotClientService.cs @@ -6,6 +6,7 @@ using Swan; using System; using System.Collections.Generic; using System.Text; +using System.Threading; using System.Timers; namespace SecondBotEvents.Services @@ -32,6 +33,8 @@ namespace SecondBotEvents.Services protected void RestartTimer(object o, ElapsedEventArgs e) { AutoRestartLoginTimer.Stop(); + LogFormater.Info("Recovery underway - waiting 4 secs then restarting bot"); + Thread.Sleep(4000); Restart(); }