Avoid exception being thrown when server status updates from service

save-path-regex
Pat Hartl 2023-11-04 22:22:37 -05:00
parent 03626a75d0
commit bd15ceaa5b
1 changed files with 5 additions and 7 deletions

View File

@ -81,7 +81,6 @@
if (args?.Server?.Id == ServerId)
{
Status = args.Status;
StateHasChanged();
if (Status == ServerProcessStatus.Error)
{
@ -89,15 +88,14 @@
{
Message = $"Error starting server {args.Server.Name}",
Description = args.Exception.Message,
}
);
});
}
}
}
private async Task Start()
{
ServerProcessService.StartServerAsync(Server);
await ServerProcessService.StartServerAsync(Server);
}
private void Stop()