1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-01-25 11:13:39 +02:00

Use await on reading the response content

This commit is contained in:
Bogdan 2023-08-30 22:11:27 +03:00 committed by Mark McDowall
parent ad1f185330
commit 82d586e701

View File

@ -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)