Fix Airlock Power not restoring after cutting the wire (#2015)

This commit is contained in:
Exp
2020-09-03 21:54:10 +02:00
committed by GitHub
parent b8bf100277
commit 7991a97ec2

View File

@@ -306,6 +306,7 @@ namespace Content.Server.GameObjects.Components.Doors
case Wires.BackupPower:
PowerWiresPulsed = true;
_powerWiresPulsedTimerCancel.Cancel();
_powerWiresPulsedTimerCancel = new CancellationTokenSource();
Timer.Spawn(PowerWiresTimeout,
() => PowerWiresPulsed = false,
_powerWiresPulsedTimerCancel.Token);