Communications Console & Medical Scanner now close when too far away (#2175)

-Wire & GasAnalyzer dispose instead of closing only
This commit is contained in:
Exp
2020-10-06 10:16:42 +02:00
committed by GitHub
parent 67ba000528
commit 920f3a999b
12 changed files with 40 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
using System.Threading;
using System.Threading;
using Content.Client.GameObjects.Components.Command;
using Robust.Client.UserInterface;
using Robust.Client.UserInterface.Controls;
@@ -68,7 +68,9 @@ namespace Content.Client.Command
protected override void Dispose(bool disposing)
{
if(disposing)
base.Dispose(disposing);
if (disposing)
_timerCancelTokenSource.Cancel();
}
}