Explorar o código

Fixed handler async

LukePulverenti Luke Pulverenti luke pulverenti %!s(int64=13) %!d(string=hai) anos
pai
achega
3802297b1b
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      MediaBrowser.Api/Plugin.cs

+ 2 - 2
MediaBrowser.Api/Plugin.cs

@@ -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);
                 }
             });
         }