Fix a infinite loop
This commit is contained in:
parent
9e3d08ddcc
commit
4920ed431e
2 changed files with 5 additions and 12 deletions
|
@ -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.2.013")]
|
||||
[assembly: AssemblyFileVersion("5.2.014")]
|
||||
[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.2.013";
|
||||
public static string BotVer = "5.2.014";
|
||||
public static string GitPassword
|
||||
{
|
||||
get
|
||||
|
|
13
Program.cs
13
Program.cs
|
@ -352,12 +352,8 @@ namespace Bot
|
|||
client.Self.RetrieveInstantMessages();
|
||||
if (client.Network.Connected == false) g_iIsRunning = false; // Quit the program and restart immediately!
|
||||
Thread.Sleep(2000);
|
||||
DirectoryInfo lp = new DirectoryInfo("update");
|
||||
|
||||
|
||||
|
||||
if (lp.Exists) g_iIsRunning = false;
|
||||
|
||||
if (conf.ConfigFor == "Main")
|
||||
{
|
||||
msg(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "Alert: Main.json is not fully initialized. Setting default values");
|
||||
|
@ -384,18 +380,15 @@ namespace Bot
|
|||
Flavor = conf.ConfigFor;
|
||||
}
|
||||
|
||||
|
||||
registry = CommandRegistry.Instance;
|
||||
registry.LocateCommands();
|
||||
|
||||
//msg(MessageHandler.Destinations.DEST_LOCAL, UUID.Zero, "Commands found: " + registry.Cmds.Count.ToString());
|
||||
|
||||
GroupsCache = new Dictionary<UUID, Group>();
|
||||
ReloadGroupsCache();
|
||||
|
||||
if (startupSeq)
|
||||
{
|
||||
registry = CommandRegistry.Instance;
|
||||
registry.LocateCommands();
|
||||
GroupsCache = new Dictionary<UUID, Group>();
|
||||
ReloadGroupsCache();
|
||||
//ReloadGroupsCache();
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue