Explorar o código

Merge pull request #2730 from Bond-009/plugincrash

Try to not crash on unsupported plugin load

(cherry picked from commit c9919f46336cc83558a000a9d4c9fda4dbf330a2)
Signed-off-by: Joshua M. Boniface <joshua@boniface.me>
Anthony Lavado %!s(int64=5) %!d(string=hai) anos
pai
achega
7059761806
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Emby.Server.Implementations/ApplicationHost.cs

+ 1 - 1
Emby.Server.Implementations/ApplicationHost.cs

@@ -1165,7 +1165,7 @@ namespace Emby.Server.Implementations
                 {
                     exportedTypes = ass.GetExportedTypes();
                 }
-                catch (TypeLoadException ex)
+                catch (FileNotFoundException ex)
                 {
                     Logger.LogError(ex, "Error getting exported types from {Assembly}", ass.FullName);
                     continue;