Skip to content

Commit 6e7a5b6

Browse files
delay option for masterkey does not delay switch off
1 parent 5db05ff commit 6e7a5b6

File tree

1 file changed

+1
-1
lines changed
  • Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/SubSystems/PowerSupplies/MasterKey.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public MasterKey(MSTSLocomotive locomotive)
6363
Locomotive = locomotive;
6464

6565
Timer = new Timer(Locomotive);
66-
Timer.Setup(DelayS);
6766
}
6867

6968
public virtual void Parse(string lowercasetoken, STFReader stf)
@@ -105,6 +104,7 @@ public void Copy(MasterKey other)
105104

106105
public virtual void Initialize()
107106
{
107+
Timer.Setup(DelayS);
108108
}
109109

110110
/// <summary>

0 commit comments

Comments
 (0)