diff options
| author | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-08-15 22:42:45 -0400 |
|---|---|---|
| committer | LukePulverenti Luke Pulverenti luke pulverenti <LukePulverenti Luke Pulverenti luke.pulverenti@gmail.com> | 2012-08-15 22:42:45 -0400 |
| commit | 3802297b1b5a40d22e9d33dc1e27e143c0231e24 (patch) | |
| tree | 7b37992785ce77661db2fdaaebc45434a73ec4e4 | |
| parent | 78bbb1cf8fddb90787017639e04ba216bba09b2f (diff) | |
Fixed handler async
| -rw-r--r-- | MediaBrowser.Api/Plugin.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Plugin.cs b/MediaBrowser.Api/Plugin.cs index 92127f98c..6bfdd5134 100644 --- a/MediaBrowser.Api/Plugin.cs +++ b/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);
}
});
}
|
