aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/ApplicationHost.cs
diff options
context:
space:
mode:
authorOdd Stråbø <oddstr13@openshell.no>2020-11-19 15:41:58 +0100
committerOdd Stråbø <oddstr13@openshell.no>2020-11-19 15:50:34 +0100
commitf8dd50fc1ae434be61f0ffb9519a40d5d6448df1 (patch)
treeb01ed381621d9ff4149536510786ffa36dc84b82 /Emby.Server.Implementations/ApplicationHost.cs
parent49ebbcf87edb805862c032e48796d2b8020e5aa7 (diff)
Fix plugin old version cleanup
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
-rw-r--r--Emby.Server.Implementations/ApplicationHost.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs
index 17b99c858..aa2ec158f 100644
--- a/Emby.Server.Implementations/ApplicationHost.cs
+++ b/Emby.Server.Implementations/ApplicationHost.cs
@@ -1070,7 +1070,6 @@ namespace Emby.Server.Implementations
if (!string.IsNullOrEmpty(lastName) && cleanup)
{
// Attempt a cleanup of old folders.
- versions.RemoveAt(x);
try
{
Logger.LogDebug("Deleting {Path}", versions[x].Path);
@@ -1080,6 +1079,8 @@ namespace Emby.Server.Implementations
{
Logger.LogWarning(e, "Unable to delete {Path}", versions[x].Path);
}
+
+ versions.RemoveAt(x);
}
}