1
0
mirror of https://github.com/chylex/Minecraft-Phantom-Panel.git synced 2025-04-23 22:15:48 +02:00

Fix instance stop timeout not killing the process

Caused by 72ddaf91.
This commit is contained in:
chylex 2024-04-11 05:41:05 +02:00
parent 3b313bf0a8
commit 4e89d7b12f
Signed by: chylex
GPG Key ID: 4DE42C8F19A80548

View File

@ -85,7 +85,7 @@ static class InstanceStopProcedure {
private static async Task WaitForSessionToEnd(InstanceContext context, InstanceProcess process) {
try {
await process.WaitForExit(TimeSpan.FromSeconds(55));
} catch (OperationCanceledException) {
} catch (TimeoutException) {
try {
context.Logger.Warning("Waiting timed out, killing session...");
process.Kill();