Network timeout during replay

This commit is contained in:
Tim Young 2018-10-17 14:56:28 -05:00
parent 17b127d69d
commit 811339b176
2 changed files with 4 additions and 2 deletions

View File

@ -255,7 +255,7 @@ namespace EduNetworkBuilder
if (CanDo)
{
ChangedComponent = (NetworkDevice)myNet.AddItem(newItemType, Location);
if (NB.DebugActions) { Console.WriteLine("Adding a Device: " + source.hostname); }
if (NB.DebugActions && source != null) { Console.WriteLine("Adding a Device: " + source.hostname); }
}
else
{

View File

@ -1696,6 +1696,7 @@ namespace EduNetworkBuilder
ActionCollection AC = Settings.GetUserActionCollection();
ActionClass Success = AC.RunAction(NextReplayIndex++);
NextReplayAction = DateTime.UtcNow.AddMilliseconds(NB.MillisecondsBetweenReplays);
DoAllAutoJoin(); //Connect network links if we need to do so
if(Success != null)
@ -1703,6 +1704,7 @@ namespace EduNetworkBuilder
//we did something. keep replaying
NB.MarkToUpdate();
StartedNewReplayAction = true;
previously_had_packets = false; //This will make sure we reset packet counters
}
else
{