Skip to content

Commit d15ed87

Browse files
author
Matt Watson
authored
Merge pull request #105 from homiedopie/hotfix/INV-1613
INV-1613 - Fix WPF deadlock for getting device name
2 parents 719fee5 + fa580ab commit d15ed87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Src/StackifyLib/Models/EnvironmentDetail.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,13 +237,13 @@ public static async Task<string> GetEC2InstanceId()
237237
try
238238
{
239239
Client.Timeout = TimeSpan.FromSeconds(5);
240-
var content = await Client.GetAsync(EC2InstanceIdUrl);
240+
var content = await Client.GetAsync(EC2InstanceIdUrl).ConfigureAwait(false);
241241

242242
int statusCode = (int)content.StatusCode;
243243

244244
if (statusCode >= 200 && statusCode < 300)
245245
{
246-
string id = await content.Content.ReadAsStringAsync();
246+
string id = await content.Content.ReadAsStringAsync().ConfigureAwait(false);
247247
r = string.IsNullOrWhiteSpace(id) ? null : id;
248248

249249
if (r.Contains("html"))

0 commit comments

Comments
 (0)