diff --git a/LANCommander/Pages/Servers/Components/ServerControl.razor b/LANCommander/Pages/Servers/Components/ServerControl.razor index 578c5e1..7deeebf 100644 --- a/LANCommander/Pages/Servers/Components/ServerControl.razor +++ b/LANCommander/Pages/Servers/Components/ServerControl.razor @@ -81,23 +81,21 @@ if (args?.Server?.Id == ServerId) { Status = args.Status; - StateHasChanged(); if (Status == ServerProcessStatus.Error) { NotificationService.Error(new NotificationConfig - { - Message = $"Error starting server {args.Server.Name}", - Description = args.Exception.Message, - } - ); + { + 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()