diff options
| author | Claus Vium <clausvium@gmail.com> | 2019-11-24 15:27:58 +0100 |
|---|---|---|
| committer | Claus Vium <clausvium@gmail.com> | 2019-11-24 15:27:58 +0100 |
| commit | 27e3cf15588f8ab8fe19aa611d79fa2ccd8ecda8 (patch) | |
| tree | c422f33524f1c9629729a2a9262eef30f6a0b10a /Emby.Server.Implementations/Session/SessionWebSocketListener.cs | |
| parent | 111b46599a66e81a8449e777cccc516c06b7548d (diff) | |
Move appbuilder and service collection to Jellyfin.Server
Diffstat (limited to 'Emby.Server.Implementations/Session/SessionWebSocketListener.cs')
| -rw-r--r-- | Emby.Server.Implementations/Session/SessionWebSocketListener.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs index 63ec75762..930f2d35d 100644 --- a/Emby.Server.Implementations/Session/SessionWebSocketListener.cs +++ b/Emby.Server.Implementations/Session/SessionWebSocketListener.cs @@ -4,7 +4,6 @@ using MediaBrowser.Controller.Net; using MediaBrowser.Controller.Session; using MediaBrowser.Model.Events; using MediaBrowser.Model.Serialization; -using MediaBrowser.Model.Services; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; @@ -67,7 +66,7 @@ namespace Emby.Server.Implementations.Session { if (queryString == null) { - throw new ArgumentNullException(nameof(queryString)); + return null; } var token = queryString["api_key"]; @@ -75,6 +74,7 @@ namespace Emby.Server.Implementations.Session { return null; } + var deviceId = queryString["deviceId"]; return _sessionManager.GetSessionByAuthenticationToken(token, deviceId, remoteEndpoint); } |
