Fixed initial install console and added a better redirect handling when creating a server

This commit is contained in:
Marcel Baumgartner
2023-08-27 20:40:58 +02:00
parent bada1e829b
commit b9c094cafa
2 changed files with 12 additions and 2 deletions

View File

@@ -218,6 +218,16 @@ public class WingsConsole : IDisposable
break;
case "install output":
if (ServerState != ServerState.Installing)
{
// Because wings is sending "install output" events BEFORE
// sending the "install started" event,
// we need to set the install state here
// See https://github.com/pterodactyl/panel/issues/4853
// for more details
await UpdateServerState(ServerState.Installing);
}
foreach (var line in eventData.Args)
{
await SaveMessage(line);