diff options
| author | Claus Vium <cvium@users.noreply.github.com> | 2020-11-19 15:54:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-19 15:54:36 +0100 |
| commit | 456ae32331a4c48fcca16cf21103deb7bdd516ea (patch) | |
| tree | 3aac0d272831e1621a701f6a6c7e70d8376f684c /Emby.Server.Implementations/ApplicationHost.cs | |
| parent | 15b9f993c611ffd3c37c1934b860f1aed14de62f (diff) | |
| parent | f8dd50fc1ae434be61f0ffb9519a40d5d6448df1 (diff) | |
Merge pull request #4516 from oddstr13/fix-plugin-cleanup
Fix plugin old version cleanup
Diffstat (limited to 'Emby.Server.Implementations/ApplicationHost.cs')
| -rw-r--r-- | Emby.Server.Implementations/ApplicationHost.cs | 3 |
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); } } |
