Network timeout during replay
This commit is contained in:
parent
17b127d69d
commit
811339b176
@ -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
|
||||
{
|
||||
|
@ -1695,7 +1695,8 @@ namespace EduNetworkBuilder
|
||||
NBSettings Settings = NB.GetSettings();
|
||||
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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user