mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Merge pull request #4516 from oddstr13/fix-plugin-cleanup
Fix plugin old version cleanup
This commit is contained in:
commit
456ae32331
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue