mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
Fixing Async Deadlock
Adding missing ConfigureAwait + put on single line await & ConfigureAwait
This commit is contained in:
@@ -176,7 +176,7 @@ namespace Octokit
|
||||
|
||||
try
|
||||
{
|
||||
var response = await Connection.Put<object>(ApiUrls.RepoCollaborator(owner, name, user), permission);
|
||||
var response = await Connection.Put<object>(ApiUrls.RepoCollaborator(owner, name, user), permission).ConfigureAwait(false);
|
||||
return response.HttpResponse.IsTrue();
|
||||
}
|
||||
catch
|
||||
@@ -217,7 +217,7 @@ namespace Octokit
|
||||
|
||||
try
|
||||
{
|
||||
var response = await Connection.Put<object>(ApiUrls.RepoCollaborator(repositoryId, user), permission);
|
||||
var response = await Connection.Put<object>(ApiUrls.RepoCollaborator(repositoryId, user), permission).ConfigureAwait(false);
|
||||
return response.HttpResponse.IsTrue();
|
||||
}
|
||||
catch
|
||||
|
||||
Reference in New Issue
Block a user