aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations
diff options
context:
space:
mode:
authorIonut Andrei Oanca <oancaionutandrei@gmail.com>2020-11-14 18:09:25 +0100
committerIonut Andrei Oanca <oancaionutandrei@gmail.com>2020-11-14 18:09:25 +0100
commitfa69f6fd511b88f2c10f37c45e1924b8bfe2e7ec (patch)
tree05f916619a9300aaf45bc9f163bbe9d0a4f4d325 /Emby.Server.Implementations
parent83333e1fe8ed35f73fafdc200a4bf39be7d80f1b (diff)
Handle ignore-wait request in waiting state in SyncPlay
Diffstat (limited to 'Emby.Server.Implementations')
-rw-r--r--Emby.Server.Implementations/SyncPlay/GroupController.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/SyncPlay/GroupController.cs b/Emby.Server.Implementations/SyncPlay/GroupController.cs
index 5a3c707db..5447aad5d 100644
--- a/Emby.Server.Implementations/SyncPlay/GroupController.cs
+++ b/Emby.Server.Implementations/SyncPlay/GroupController.cs
@@ -372,12 +372,10 @@ namespace Emby.Server.Implementations.SyncPlay
/// <inheritdoc />
public void SetIgnoreGroupWait(SessionInfo session, bool ignoreGroupWait)
{
- if (!Participants.ContainsKey(session.Id))
+ if (Participants.TryGetValue(session.Id, out GroupMember value))
{
- return;
+ value.IgnoreGroupWait = ignoreGroupWait;
}
-
- Participants[session.Id].IgnoreGroupWait = ignoreGroupWait;
}
/// <inheritdoc />