aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-03 12:44:13 -0500
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-02-03 12:44:13 -0500
commit4205dcac9db652a2576f965d80a900bd390f125c (patch)
treed931a2c6e4af128f218dec3100141888f7fbd551 /MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs
parent1de89cf27203b7d3df488e2c4785df6205e9123a (diff)
Add dlna headers to static responses
Diffstat (limited to 'MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs b/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs
index b9e8b7950..0e2f9e1b5 100644
--- a/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs
+++ b/MediaBrowser.Server.Implementations/Roku/RokuSessionController.cs
@@ -91,10 +91,11 @@ namespace MediaBrowser.Server.Implementations.Roku
}, cancellationToken);
}
+ private readonly Task _cachedTask = Task.FromResult(true);
public Task SendLibraryUpdateInfo(LibraryUpdateInfo info, CancellationToken cancellationToken)
{
// Roku probably won't care about this
- return Task.FromResult(true);
+ return _cachedTask;
}
public Task SendRestartRequiredNotification(CancellationToken cancellationToken)
@@ -110,7 +111,7 @@ namespace MediaBrowser.Server.Implementations.Roku
public Task SendUserDataChangeInfo(UserDataChangeInfo info, CancellationToken cancellationToken)
{
// Roku probably won't care about this
- return Task.FromResult(true);
+ return _cachedTask;
}
public Task SendServerShutdownNotification(CancellationToken cancellationToken)