Trying backend again

This commit is contained in:
Rick Falkvinge
2013-06-05 07:56:01 +00:00
parent 64f50db304
commit 854e6c6a97
2 changed files with 6 additions and 7 deletions
+2 -4
View File
@@ -125,8 +125,6 @@ namespace Swarmops.Backend
Console.WriteLine(" * Swarmops Backend starting");
HeartBeater.Instance.Beat(heartbeatFile);
BotLog.Write(0, "MainCycle", "Backend STARTING");
DateTime cycleStartTime = DateTime.Now;
@@ -145,7 +143,6 @@ namespace Swarmops.Backend
try
{
HeartBeater.Instance.Beat();
OnEveryTenSeconds();
if (cycleStartTime.Second < lastSecond)
@@ -209,11 +206,12 @@ namespace Swarmops.Backend
Console.WriteLine(" * Swarmops Backend stopping");
BotLog.Write(0, "MainCycle", "BACKEND EXITING, sending backend-termination notices");
/*
if (HeartBeater.Instance.WasKilled)
{
// removed unconditional delete, cron job that restarts bot uses it to know that it is intentionally down.
ExceptionMail.Send(new Exception("HeartBeater triggered restart of Swarmops Backend. Will commence after 800 seconds."), false);
}
}*/
BotLog.Write(0, "MainCycle", "...done");