From 96d3269836ea4ac5cc58f2334e54d4fdaa65dae6 Mon Sep 17 00:00:00 2001 From: Dominion Date: Sat, 29 Apr 2023 16:18:41 -0400 Subject: [PATCH] Fix using without await --- src/Tgstation.Server.Client/ApiClient.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Tgstation.Server.Client/ApiClient.cs b/src/Tgstation.Server.Client/ApiClient.cs index 11d79a0513..649745b609 100644 --- a/src/Tgstation.Server.Client/ApiClient.cs +++ b/src/Tgstation.Server.Client/ApiClient.cs @@ -405,7 +405,7 @@ namespace Tgstation.Server.Client /// If this is a token refresh operation. /// The for the operation. /// A resulting in the response on success. - Task RunRequest( + async Task RunRequest( string route, TBody? body, HttpMethod method, @@ -422,13 +422,14 @@ namespace Tgstation.Server.Client ApiHeaders.ApplicationJsonMime); using (content) - return RunRequest( + return await RunRequest( route, content, method, instanceId, tokenRefresh, - cancellationToken); + cancellationToken) + .ConfigureAwait(false); } } }