mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
dispose content stream with StaticRemoteStreamWriter
This commit is contained in:
parent
792e4c4f1b
commit
a5b4ae8b39
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ namespace MediaBrowser.Api.Playback
|
||||||
/// <param name="responseStream">The response stream.</param>
|
/// <param name="responseStream">The response stream.</param>
|
||||||
public void WriteTo(Stream responseStream)
|
public void WriteTo(Stream responseStream)
|
||||||
{
|
{
|
||||||
_response.Content.CopyTo(responseStream, 819200);
|
using (_response)
|
||||||
|
{
|
||||||
|
_response.Content.CopyTo(responseStream, 819200);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue