mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
Fixed handler async
This commit is contained in:
parent
78bbb1cf8f
commit
3802297b1b
1 changed files with 2 additions and 2 deletions
|
@ -22,13 +22,13 @@ namespace MediaBrowser.Api
|
|||
{
|
||||
var httpServer = Kernel.Instance.HttpServer;
|
||||
|
||||
httpServer.Where(ctx => ctx.Request.Url.LocalPath.IndexOf("/api/", StringComparison.OrdinalIgnoreCase) != -1).Subscribe(ctx =>
|
||||
httpServer.Where(ctx => ctx.Request.Url.LocalPath.IndexOf("/api/", StringComparison.OrdinalIgnoreCase) != -1).Subscribe(async (ctx) =>
|
||||
{
|
||||
BaseHandler handler = GetHandler(ctx);
|
||||
|
||||
if (handler != null)
|
||||
{
|
||||
handler.ProcessRequest(ctx);
|
||||
await handler.ProcessRequest(ctx);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue