aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-20 13:17:03 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-20 13:17:03 -0400
commit6df78dcb342bd38792cde75498292e3f6ef15fd7 (patch)
tree0682ea63cd9771ab44d1ad494ade37490d6b0a7d /MediaBrowser.Server.Implementations/Session/WebSocketController.cs
parent881928323e16b1cf9a4831753a3da521c38b6e47 (diff)
improve people naming
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/WebSocketController.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/WebSocketController.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/WebSocketController.cs b/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
index 19aaaf8a5..f51998fea 100644
--- a/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
+++ b/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
@@ -233,8 +233,6 @@ namespace MediaBrowser.Server.Implementations.Session
private Task SendMessageInternal<T>(WebSocketMessage<T> message, CancellationToken cancellationToken)
{
- if (SkipSending()) return Task.FromResult(true);
-
var socket = GetActiveSocket();
return socket.SendAsync(message, cancellationToken);
@@ -242,8 +240,6 @@ namespace MediaBrowser.Server.Implementations.Session
private Task SendMessagesInternal<T>(WebSocketMessage<T> message, CancellationToken cancellationToken)
{
- if (SkipSending()) return Task.FromResult(true);
-
var tasks = GetActiveSockets().Select(i => Task.Run(async () =>
{
try
@@ -260,27 +256,6 @@ namespace MediaBrowser.Server.Implementations.Session
return Task.WhenAll(tasks);
}
- private bool SkipSending()
- {
- if (Session != null)
- {
- if (string.Equals(Session.Client, "mb-classic", StringComparison.OrdinalIgnoreCase))
- {
- Version version;
-
- if (!string.IsNullOrWhiteSpace(Session.ApplicationVersion) && Version.TryParse(Session.ApplicationVersion, out version))
- {
- if (version < new Version(3, 0, 196))
- {
- _logger.Debug("Skipping web socket message to MBC version {0}.", version);
- return true;
- }
- }
- }
- }
- return false;
- }
-
public void Dispose()
{
foreach (var socket in Sockets.ToList())