adjust auto recovery
This commit is contained in:
parent
e43dbcabc8
commit
f4bc6bfe68
1 changed files with 3 additions and 0 deletions
|
|
@ -6,6 +6,7 @@ using Swan;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using System.Threading;
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
|
||||||
namespace SecondBotEvents.Services
|
namespace SecondBotEvents.Services
|
||||||
|
|
@ -32,6 +33,8 @@ namespace SecondBotEvents.Services
|
||||||
protected void RestartTimer(object o, ElapsedEventArgs e)
|
protected void RestartTimer(object o, ElapsedEventArgs e)
|
||||||
{
|
{
|
||||||
AutoRestartLoginTimer.Stop();
|
AutoRestartLoginTimer.Stop();
|
||||||
|
LogFormater.Info("Recovery underway - waiting 4 secs then restarting bot");
|
||||||
|
Thread.Sleep(4000);
|
||||||
Restart();
|
Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue