Skip to content

Commit ec15969

Browse files
David EllingsworthDavid Ellingsworth
authored andcommitted
Add missing ConfigureAwait on awaited task.
1 parent 9b2fe0a commit ec15969

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/RestSharp/AsyncHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static void RunSync(Func<Task> task) {
4545
/// <returns>Return value from the task</returns>
4646
public static T RunSync<T>(Func<Task<T>> task) {
4747
T result = default!;
48-
RunSync(async () => { result = await task(); });
48+
RunSync(async () => { result = await task().ConfigureAwait(false); });
4949
return result;
5050
}
5151

0 commit comments

Comments
 (0)