Use await on reading the response content

(cherry picked from commit 82d586e7015d7ea06356ca436024a8af5a4fb677)

Closes #4127
This commit is contained in:
Bogdan 2023-08-30 22:11:27 +03:00
parent 780420e799
commit febf4b26a1
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ namespace NzbDrone.Common.Http.Dispatchers
} }
else else
{ {
data = responseMessage.Content.ReadAsByteArrayAsync(cts.Token).GetAwaiter().GetResult(); data = await responseMessage.Content.ReadAsByteArrayAsync(cts.Token);
} }
} }
catch (Exception ex) catch (Exception ex)