Network timeout during replay
This commit is contained in:
parent
17b127d69d
commit
811339b176
@ -255,7 +255,7 @@ namespace EduNetworkBuilder
|
|||||||
if (CanDo)
|
if (CanDo)
|
||||||
{
|
{
|
||||||
ChangedComponent = (NetworkDevice)myNet.AddItem(newItemType, Location);
|
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
|
else
|
||||||
{
|
{
|
||||||
|
@ -1696,6 +1696,7 @@ namespace EduNetworkBuilder
|
|||||||
ActionCollection AC = Settings.GetUserActionCollection();
|
ActionCollection AC = Settings.GetUserActionCollection();
|
||||||
ActionClass Success = AC.RunAction(NextReplayIndex++);
|
ActionClass Success = AC.RunAction(NextReplayIndex++);
|
||||||
|
|
||||||
|
|
||||||
NextReplayAction = DateTime.UtcNow.AddMilliseconds(NB.MillisecondsBetweenReplays);
|
NextReplayAction = DateTime.UtcNow.AddMilliseconds(NB.MillisecondsBetweenReplays);
|
||||||
DoAllAutoJoin(); //Connect network links if we need to do so
|
DoAllAutoJoin(); //Connect network links if we need to do so
|
||||||
if(Success != null)
|
if(Success != null)
|
||||||
@ -1703,6 +1704,7 @@ namespace EduNetworkBuilder
|
|||||||
//we did something. keep replaying
|
//we did something. keep replaying
|
||||||
NB.MarkToUpdate();
|
NB.MarkToUpdate();
|
||||||
StartedNewReplayAction = true;
|
StartedNewReplayAction = true;
|
||||||
|
previously_had_packets = false; //This will make sure we reset packet counters
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user