Fixing Async Deadlock

Adding missing ConfigureAwait + put on single line await &
ConfigureAwait
This commit is contained in:
zzzprojects
2016-10-03 11:24:07 -04:00
parent 01c66147b1
commit 82dfabefa7
6 changed files with 18 additions and 28 deletions
+1 -1
View File
@@ -174,7 +174,7 @@ namespace Octokit.Internal
public async Task<HttpResponseMessage> SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
{
// Clone the request/content incase we get a redirect
var clonedRequest = await CloneHttpRequestMessageAsync(request);
var clonedRequest = await CloneHttpRequestMessageAsync(request).ConfigureAwait(false);
// Send initial response
var response = await _http.SendAsync(request, HttpCompletionOption.ResponseContentRead, cancellationToken).ConfigureAwait(false);