mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-11-03 20:55:58 +00:00
update live stream management
This commit is contained in:
1 parent
d22b7817a4
commit
50e6686987
53 files changed
+487
-1078
No files matched your search
+5
-13
@@ -81,20 +81,12 @@ namespace MediaBrowser.Server.Implementations.HttpServer.SocketSharp
|
||||
|
||||
public void Write(string text)
|
||||
{
|
||||
try
|
||||
{
|
||||
var bOutput = System.Text.Encoding.UTF8.GetBytes(text);
|
||||
response.ContentLength64 = bOutput.Length;
|
||||
var bOutput = System.Text.Encoding.UTF8.GetBytes(text);
|
||||
response.ContentLength64 = bOutput.Length;
|
||||
|
||||
var outputStream = response.OutputStream;
|
||||
outputStream.Write(bOutput, 0, bOutput.Length);
|
||||
Close();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
_logger.ErrorException("Could not WriteTextToResponse: " + ex.Message, ex);
|
||||
throw;
|
||||
}
|
||||
var outputStream = response.OutputStream;
|
||||
outputStream.Write(bOutput, 0, bOutput.Length);
|
||||
Close();
|
||||
}
|
||||
|
||||
public void Close()
|
||||
|
||||
Reference in new issue
Block a user