Added ConfigureAwait(false) to prevent deadlocks when used in a sync context

This commit is contained in:
Gabriel Weyer
2015-12-14 23:00:38 +11:00
parent 74cb2b2b90
commit a5e768d647
+3 -1
View File
@@ -118,7 +118,9 @@ namespace Octokit
try
{
return await ApiConnection.Put<PullRequestMerge>(ApiUrls.MergePullRequest(owner, name, number), mergePullRequest);
return await ApiConnection
.Put<PullRequestMerge>(ApiUrls.MergePullRequest(owner, name, number), mergePullRequest)
.ConfigureAwait(false);
}
catch (ApiException ex)
{