mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 10:04:44 +01:00
Re-worked async actions in BaseHandler, and changed AudioBitRate to AudioBitRates.
This commit is contained in:
parent
51227bef6f
commit
24d2c441b3
@@ -117,14 +117,6 @@ namespace MediaBrowser.Common.Net.Handlers
|
||||
}
|
||||
}
|
||||
|
||||
protected override bool IsAsyncHandler
|
||||
{
|
||||
get
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
public override string ContentType
|
||||
{
|
||||
get
|
||||
@@ -133,7 +125,7 @@ namespace MediaBrowser.Common.Net.Handlers
|
||||
}
|
||||
}
|
||||
|
||||
protected async override void WriteResponseToOutputStream(Stream stream)
|
||||
protected async override Task WriteResponseToOutputStream(Stream stream)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -175,8 +167,6 @@ namespace MediaBrowser.Common.Net.Handlers
|
||||
{
|
||||
FileStream.Dispose();
|
||||
}
|
||||
|
||||
DisposeResponseStream();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user