The Free Software Media System - Server Backend & API
Make method async
Bond_0096329a36a274d
diff --git a/Jellyfin.Api/Controllers/MediaInfoController.cs b/Jellyfin.Api/Controllers/MediaInfoController.csindex 7faf479a5c..1e154a0394 100644--- a/Jellyfin.Api/Controllers/MediaInfoController.cs+++ b/Jellyfin.Api/Controllers/MediaInfoController.cs@@ -269,9 +269,9 @@ namespace Jellyfin.Api.Controllers/// <returns>A <see cref="NoContentResult"/> indicating success.</returns>[HttpPost("LiveStreams/Close")][ProducesResponseType(StatusCodes.Status204NoContent)]- public ActionResult CloseLiveStream([FromQuery, Required] string? liveStreamId)+ public async Task<ActionResult> CloseLiveStream([FromQuery, Required] string? liveStreamId){- _mediaSourceManager.CloseLiveStream(liveStreamId).GetAwaiter().GetResult();+ await _mediaSourceManager.CloseLiveStream(liveStreamId).ConfigureAwait(false);return NoContent();}