diff options
| author | gion <oancaionutandrei@gmail.com> | 2020-05-09 14:34:07 +0200 |
|---|---|---|
| committer | gion <oancaionutandrei@gmail.com> | 2020-05-09 14:34:07 +0200 |
| commit | 5c8cbd4087261f13d003d7d4eab082cbf335b4d4 (patch) | |
| tree | b777fc583e54ea1b4a676cab0ad05bf9df903a1f /Emby.Server.Implementations/SyncPlay/SyncPlayController.cs | |
| parent | 8a6ec2fb713cb77e91d2fceea8b4fce8e7d17395 (diff) | |
Fix code issues
Diffstat (limited to 'Emby.Server.Implementations/SyncPlay/SyncPlayController.cs')
| -rw-r--r-- | Emby.Server.Implementations/SyncPlay/SyncPlayController.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/SyncPlay/SyncPlayController.cs b/Emby.Server.Implementations/SyncPlay/SyncPlayController.cs index 9c9758de1..c7bd242a7 100644 --- a/Emby.Server.Implementations/SyncPlay/SyncPlayController.cs +++ b/Emby.Server.Implementations/SyncPlay/SyncPlayController.cs @@ -144,7 +144,7 @@ namespace Emby.Server.Implementations.SyncPlay session => session.Session ).ToArray(); default: - return new SessionInfo[] { }; + return Array.Empty<SessionInfo>(); } } @@ -541,7 +541,7 @@ namespace Emby.Server.Implementations.SyncPlay PlayingItemName = _group.PlayingItem.Name, PlayingItemId = _group.PlayingItem.Id.ToString(), PositionTicks = _group.PositionTicks, - Participants = _group.Participants.Values.Select(session => session.Session.UserName).Distinct().ToArray() + Participants = _group.Participants.Values.Select(session => session.Session.UserName).Distinct().ToList().AsReadOnly() }; } } |
