exit on restart

This commit is contained in:
zznty
2023-01-09 22:02:54 +07:00
parent b8be5b2dce
commit aeea192860

View File

@@ -229,6 +229,8 @@ namespace Torch.Server
} }
Process.Start(exe, $"--waitForPid {Environment.ProcessId} --tempAutostart true {string.Join(" ", args)}"); Process.Start(exe, $"--waitForPid {Environment.ProcessId} --tempAutostart true {string.Join(" ", args)}");
Environment.Exit(0);
}) })
{ {
Name = "Restart thread" Name = "Restart thread"