aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/IO/FileRefresher.cs
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-09-18 13:09:00 -0400
committerGitHub <noreply@github.com>2017-09-18 13:09:00 -0400
commitb09e0a6e29ef32e91561451a3c5a4b7b436882e9 (patch)
treeb2769394f51e63eae055ad1d1de3b6fe152a1a2d /Emby.Server.Implementations/IO/FileRefresher.cs
parent64b04216f11799c114e57349e83ce78ef2795a02 (diff)
parent983c249d397a356b5fa770a2e2fe5df87b11f4d4 (diff)
Merge pull request #2889 from MediaBrowser/dev
Dev
Diffstat (limited to 'Emby.Server.Implementations/IO/FileRefresher.cs')
-rw-r--r--Emby.Server.Implementations/IO/FileRefresher.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/IO/FileRefresher.cs b/Emby.Server.Implementations/IO/FileRefresher.cs
index 20de8a518..315bee103 100644
--- a/Emby.Server.Implementations/IO/FileRefresher.cs
+++ b/Emby.Server.Implementations/IO/FileRefresher.cs
@@ -209,7 +209,7 @@ namespace Emby.Server.Implementations.IO
// If the item has been deleted find the first valid parent that still exists
while (!_fileSystem.DirectoryExists(item.Path) && !_fileSystem.FileExists(item.Path))
{
- item = item.GetParent();
+ item = item.IsOwnedItem ? item.GetOwner() : item.GetParent();
if (item == null)
{