mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-03-02 00:12:24 +00:00
Don't set status code if response is closed
This commit is contained in:
@@ -225,7 +225,7 @@ namespace Emby.Server.Implementations.HttpServer
|
||||
|
||||
var httpRes = httpReq.Response;
|
||||
|
||||
if (httpRes.IsClosed)
|
||||
if (httpRes.OriginalResponse.HasStarted)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -595,8 +595,6 @@ namespace Emby.Server.Implementations.HttpServer
|
||||
}
|
||||
finally
|
||||
{
|
||||
// TODO response closes automatically after the handler is done, but some functions rely on knowing if it's closed or not
|
||||
httpRes.IsClosed = true;
|
||||
stopWatch.Stop();
|
||||
var elapsed = stopWatch.Elapsed;
|
||||
if (elapsed.TotalMilliseconds > 500)
|
||||
|
||||
Reference in New Issue
Block a user