diff options
| author | Ionut Andrei Oanca <oancaionutandrei@gmail.com> | 2020-11-14 18:09:25 +0100 |
|---|---|---|
| committer | Ionut Andrei Oanca <oancaionutandrei@gmail.com> | 2020-11-14 18:09:25 +0100 |
| commit | fa69f6fd511b88f2c10f37c45e1924b8bfe2e7ec (patch) | |
| tree | 05f916619a9300aaf45bc9f163bbe9d0a4f4d325 /Emby.Server.Implementations/SyncPlay | |
| parent | 83333e1fe8ed35f73fafdc200a4bf39be7d80f1b (diff) | |
Handle ignore-wait request in waiting state in SyncPlay
Diffstat (limited to 'Emby.Server.Implementations/SyncPlay')
| -rw-r--r-- | Emby.Server.Implementations/SyncPlay/GroupController.cs | 6 |
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 /> |
