Fixed app not launching properly

This commit is contained in:
Jeddunk 2021-01-01 14:53:02 +01:00
parent 717960c6b5
commit 201e122e8b
3 changed files with 18 additions and 14 deletions

View file

@ -64,7 +64,7 @@ namespace auto_creamapi.Services
MyLogger.Log.Information("Getting content from API...");
var client = new HttpClient();
var httpCall = client.GetAsync(SteamUri);
var response = await httpCall;
var response = await httpCall.ConfigureAwait(false);
var readAsStringAsync = response.Content.ReadAsStringAsync();
var responseBody = await readAsStringAsync;
MyLogger.Log.Information("Got content from API successfully. Writing to file...");