mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2025-05-03 15:34:06 +02:00
parent
3b313bf0a8
commit
4e89d7b12f
@ -85,7 +85,7 @@ static class InstanceStopProcedure {
|
|||||||
private static async Task WaitForSessionToEnd(InstanceContext context, InstanceProcess process) {
|
private static async Task WaitForSessionToEnd(InstanceContext context, InstanceProcess process) {
|
||||||
try {
|
try {
|
||||||
await process.WaitForExit(TimeSpan.FromSeconds(55));
|
await process.WaitForExit(TimeSpan.FromSeconds(55));
|
||||||
} catch (OperationCanceledException) {
|
} catch (TimeoutException) {
|
||||||
try {
|
try {
|
||||||
context.Logger.Warning("Waiting timed out, killing session...");
|
context.Logger.Warning("Waiting timed out, killing session...");
|
||||||
process.Kill();
|
process.Kill();
|
||||||
|
Loading…
Reference in New Issue
Block a user