mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Auto Process Tweaks
This commit is contained in:
parent
e6f750c17c
commit
aa265bfbb6
11 changed files with 321 additions and 181 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using ServerManagerTool.Common.Utils;
|
||||
using ServerManagerTool.Common;
|
||||
using ServerManagerTool.Common.Utils;
|
||||
using ServerManagerTool.Enums;
|
||||
using ServerManagerTool.Lib;
|
||||
using ServerManagerTool.Plugin.Common;
|
||||
|
|
@ -243,7 +244,7 @@ namespace ServerManagerTool
|
|||
|
||||
_shutdownCancellationSource = new CancellationTokenSource();
|
||||
|
||||
var exitCode = await Task.Run(() => app.PerformProfileShutdown(profile, restartServer, updateServer, false, _shutdownCancellationSource.Token));
|
||||
var exitCode = await Task.Run(() => app.PerformProfileShutdown(profile, restartServer, updateServer, false, CommonConfig.Default.SteamCmdRemoveQuit, _shutdownCancellationSource.Token));
|
||||
if (exitCode != ServerApp.EXITCODE_NORMALEXIT && exitCode != ServerApp.EXITCODE_CANCELLED)
|
||||
throw new ApplicationException($"An error occured during the shutdown process - ExitCode: {exitCode}");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue