The Free Software Media System - Server Backend & API
Fix plugin old version cleanup
Odd Stråbøf8dd50fc1ae4
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.csindex 17b99c858f..aa2ec158fa 100644--- a/Emby.Server.Implementations/ApplicationHost.cs+++ b/Emby.Server.Implementations/ApplicationHost.cs@@ -1070,7 +1070,6 @@ namespace Emby.Server.Implementationsif (!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);}}