diff --git a/2LCS/Forms/RDPConnect.cs b/2LCS/Forms/RDPConnect.cs index 67697ac..24e070d 100644 --- a/2LCS/Forms/RDPConnect.cs +++ b/2LCS/Forms/RDPConnect.cs @@ -94,7 +94,7 @@ namespace LCS.Forms this.SetProgress(e.ProgressPercentage, e.UserState as string); } - private async void OnWorkerDoWork(object sender, DoWorkEventArgs e) + private void OnWorkerDoWork(object sender, DoWorkEventArgs e) { worker.ReportProgress(25, "Initializing LCS connections"); @@ -119,7 +119,7 @@ namespace LCS.Forms worker.ReportProgress(50, "Loading cloud-hosted instances"); - var chInstances = await httpClientHelper.GetCheInstancesAsync(); + var chInstances = httpClientHelper.GetCheInstancesAsync().Result; var chInstance = chInstances.FirstOrDefault(e => e.DisplayName == rdpData.Environment);