mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 19:17:24 -05:00 
			
		
		
		
	Merge pull request #4476 from crobibero/plugin-update-exception
Fix plugin update exception
This commit is contained in:
		
						commit
						c49b854295
					
				@ -996,6 +996,12 @@ namespace Emby.Server.Implementations
 | 
				
			|||||||
        {
 | 
					        {
 | 
				
			||||||
            var minimumVersion = new Version(0, 0, 0, 1);
 | 
					            var minimumVersion = new Version(0, 0, 0, 1);
 | 
				
			||||||
            var versions = new List<LocalPlugin>();
 | 
					            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);
 | 
					            var directories = Directory.EnumerateDirectories(path, "*.*", SearchOption.TopDirectoryOnly);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            foreach (var dir in directories)
 | 
					            foreach (var dir in directories)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user