Fix plugin update exception
This commit is contained in:
parent
f45b4ac11f
commit
5845bf93cb
|
@ -996,6 +996,12 @@ namespace Emby.Server.Implementations
|
|||
{
|
||||
var minimumVersion = new Version(0, 0, 0, 1);
|
||||
var versions = new List<LocalPlugin>();
|
||||
if (!Directory.Exists(path))
|
||||
{
|
||||
// Plugin path doesn't exist, don't try to enumerate subfolders.
|
||||
return Enumerable.Empty<LocalPlugin>();
|
||||
}
|
||||
|
||||
var directories = Directory.EnumerateDirectories(path, "*.*", SearchOption.TopDirectoryOnly);
|
||||
|
||||
foreach (var dir in directories)
|
||||
|
|
Loading…
Reference in New Issue
Block a user