From 43a87c6be0b1a964baa168ad1501e786c12abcad Mon Sep 17 00:00:00 2001 From: Zontreck Date: Sat, 20 Jun 2020 20:39:32 -0700 Subject: [PATCH] Add lockfiles to the bot --- Assembly/ASMInfo.cs | 4 ++-- Program.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Assembly/ASMInfo.cs b/Assembly/ASMInfo.cs index e78eae4..3cad60a 100644 --- a/Assembly/ASMInfo.cs +++ b/Assembly/ASMInfo.cs @@ -6,7 +6,7 @@ using System.Reflection; [assembly: AssemblyCompany("ZNI")] [assembly: AssemblyAlgorithmId(System.Configuration.Assemblies.AssemblyHashAlgorithm.MD5)] [assembly: AssemblyCopyright("© 2020 Tara Piccari")] -[assembly: AssemblyFileVersion("5.1.965")] +[assembly: AssemblyFileVersion("5.1.966")] [assembly: AssemblyDescription("Second Life Bot - BotCore5")] @@ -15,7 +15,7 @@ namespace Bot.Assemble public class ASMInfo { public static string BotName = "ZBotCore"; - public static string BotVer = "5.1.965"; + public static string BotVer = "5.1.966"; public static string GitPassword { get diff --git a/Program.cs b/Program.cs index 6b6d82b..514b143 100644 --- a/Program.cs +++ b/Program.cs @@ -48,6 +48,9 @@ namespace Bot public static unsafe void Main(string[] args) { + if (File.Exists("Bot.lockfile")) Environment.Exit(0); + + File.WriteAllText("Bot.lockfile", "1"); Console.WriteLine("Setting up Main Configuration"); Log = new Logger("BotCore5"); BotSession.Instance.Logger = Log;