Cleanup TimeSpan usage

This commit is contained in:
Jordan Brown
2018-09-21 23:19:27 -04:00
parent efdad3b610
commit 91543d73ff
@@ -184,7 +184,7 @@ namespace Tgstation.Server.Host.Components
while (true)
try
{
await Task.Delay(new TimeSpan(0, minutes > Int32.MaxValue ? Int32.MaxValue : (int)minutes, 0), cancellationToken).ConfigureAwait(false);
await Task.Delay(TimeSpan.FromMinutes(minutes > Int32.MaxValue ? Int32.MaxValue : (int)minutes), cancellationToken).ConfigureAwait(false);
try
{