Avoid exception being thrown when server status updates from service
parent
03626a75d0
commit
bd15ceaa5b
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue