mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-16 08:25:28 +00:00
Fix ASF restart
This commit is contained in:
@@ -60,7 +60,9 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
internal static void Restart() {
|
||||
InitShutdownSequence();
|
||||
if (!InitShutdownSequence()) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
Process.Start(Assembly.GetEntryAssembly().Location, string.Join(" ", Environment.GetCommandLineArgs().Skip(1)));
|
||||
@@ -68,6 +70,7 @@ namespace ArchiSteamFarm {
|
||||
Logging.LogGenericException(e);
|
||||
}
|
||||
|
||||
ShutdownResetEvent.Set();
|
||||
Environment.Exit(0);
|
||||
}
|
||||
|
||||
@@ -133,7 +136,7 @@ namespace ArchiSteamFarm {
|
||||
return !string.IsNullOrEmpty(result) ? result.Trim() : null;
|
||||
}
|
||||
|
||||
private static void Shutdown() {
|
||||
internal static void Shutdown() {
|
||||
if (!InitShutdownSequence()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user