Use await on reading the response content

pull/6020/head
Bogdan 2 years ago committed by Mark McDowall
parent ad1f185330
commit 82d586e701

@ -114,7 +114,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)

Loading…
Cancel
Save