Use await on reading the response content

(cherry picked from commit 82d586e7015d7ea06356ca436024a8af5a4fb677)
pull/1875/head
Bogdan 9 months ago
parent c2ae0cce03
commit 3ed6ef0336

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

Loading…
Cancel
Save