mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-27 13:38:20 +00:00
dispose content stream with StaticRemoteStreamWriter
This commit is contained in:
@@ -40,7 +40,10 @@ namespace MediaBrowser.Api.Playback
|
||||
/// <param name="responseStream">The response stream.</param>
|
||||
public void WriteTo(Stream responseStream)
|
||||
{
|
||||
_response.Content.CopyTo(responseStream, 819200);
|
||||
using (_response)
|
||||
{
|
||||
_response.Content.CopyTo(responseStream, 819200);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user