Merge pull request #14935 from JadedRain/master
Some checks failed
Tests / run-tests (macos-latest) (push) Waiting to run
Tests / run-tests (ubuntu-latest) (push) Waiting to run
Tests / run-tests (windows-latest) (push) Waiting to run
OpenAPI Publish / OpenAPI - Publish Artifact (push) Waiting to run
Project Automation / Project board (push) Waiting to run
OpenAPI Publish / OpenAPI - Publish Unstable Spec (push) Blocked by required conditions
OpenAPI Publish / OpenAPI - Publish Stable Spec (push) Blocked by required conditions
Merge Conflict Labeler / main (push) Waiting to run
Stale PR Check / Check PRs with merge conflicts (push) Has been cancelled
CodeQL / Analyze (csharp) (push) Waiting to run
Format / format-check (push) Waiting to run

Fixed "Deleting media that is still being watched in SyncPlay results in errors"
This commit is contained in:
Bond-009
2026-06-18 17:46:33 +02:00
committed by GitHub
2 changed files with 82 additions and 1 deletions

View File

@@ -206,7 +206,8 @@ namespace Emby.Server.Implementations.SyncPlay
foreach (var itemId in queue)
{
var item = _libraryManager.GetItemById(itemId);
if (!item.IsVisibleStandalone(user))
if (item is null || !item.IsVisibleStandalone(user))
{
return false;
}