mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-26 06:27:19 +01:00
Minor code cleanup
This commit is contained in:
@@ -364,7 +364,8 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
public async Task StartAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
var reattachInfo = await SessionPersistor.Load(cancellationToken);
|
||||
if (!autoStart && reattachInfo == null)
|
||||
var reattaching = reattachInfo != null;
|
||||
if (!autoStart && !reattaching)
|
||||
return;
|
||||
|
||||
var job = new Models.Job
|
||||
@@ -373,7 +374,7 @@ namespace Tgstation.Server.Host.Components.Watchdog
|
||||
{
|
||||
Id = metadata.Id,
|
||||
},
|
||||
Description = $"Instance startup watchdog {(reattachInfo != null ? "reattach" : "launch")}",
|
||||
Description = $"Instance startup watchdog {(reattaching ? "reattach" : "launch")}",
|
||||
CancelRight = (ulong)DreamDaemonRights.Shutdown,
|
||||
CancelRightsType = RightsType.DreamDaemon,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user