From 8b71ab2e7d81f315f729aaee5eb976d181b8909b Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sat, 15 Feb 2014 11:36:09 -0500 Subject: expose omdb to metadata config --- MediaBrowser.Common.Implementations/BaseApplicationHost.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'MediaBrowser.Common.Implementations') diff --git a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs index f63108048..5aa83abf4 100644 --- a/MediaBrowser.Common.Implementations/BaseApplicationHost.cs +++ b/MediaBrowser.Common.Implementations/BaseApplicationHost.cs @@ -176,7 +176,7 @@ namespace MediaBrowser.Common.Implementations /// /// true if this instance is running as service; otherwise, false. public abstract bool IsRunningAsService { get; } - + /// /// Initializes a new instance of the class. /// @@ -547,7 +547,7 @@ namespace MediaBrowser.Common.Implementations { Container.Register(typeInterface, typeImplementation); } - + /// /// Resolves this instance. /// @@ -709,7 +709,14 @@ namespace MediaBrowser.Common.Implementations { Logger.Info("Disposing " + part.GetType().Name); - part.Dispose(); + try + { + part.Dispose(); + } + catch (Exception ex) + { + Logger.ErrorException("Error disposing {0}", ex, part.GetType().Name); + } } } } -- cgit v1.2.3