diff options
| author | Greenback <jimcartlidge@yahoo.co.uk> | 2020-11-19 15:39:00 +0000 |
|---|---|---|
| committer | Greenback <jimcartlidge@yahoo.co.uk> | 2020-11-19 15:39:00 +0000 |
| commit | 452ca4565ff245a3dec670fbe5b9881df76d9434 (patch) | |
| tree | 75066f5548af06bcbbe88cd6bd5e0202756aa465 | |
| parent | 31980e6f87543314d041d9ef4cc38356f752fb70 (diff) | |
reversing other PR
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/ApplicationHost.cs b/Emby.Server.Implementations/ApplicationHost.cs index cba9afb98..17b99c858 100644 --- a/Emby.Server.Implementations/ApplicationHost.cs +++ b/Emby.Server.Implementations/ApplicationHost.cs @@ -999,7 +999,7 @@ namespace Emby.Server.Implementations var versions = new List<LocalPlugin>(); if (!Directory.Exists(path)) { - // Plugin path doesn't exist, don't try to enumerate sub-folders. + // Plugin path doesn't exist, don't try to enumerate subfolders. return Enumerable.Empty<LocalPlugin>(); } @@ -1070,6 +1070,7 @@ 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); @@ -1079,8 +1080,6 @@ namespace Emby.Server.Implementations { Logger.LogWarning(e, "Unable to delete {Path}", versions[x].Path); } - - versions.RemoveAt(x); } } |
