From fa69f6fd511b88f2c10f37c45e1924b8bfe2e7ec Mon Sep 17 00:00:00 2001 From: Ionut Andrei Oanca Date: Sat, 14 Nov 2020 18:09:25 +0100 Subject: Handle ignore-wait request in waiting state in SyncPlay --- Emby.Server.Implementations/SyncPlay/GroupController.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Emby.Server.Implementations') 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 /// 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; } /// -- cgit v1.2.3