diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-05-28 11:56:12 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2017-05-28 11:56:12 -0400 |
| commit | 316b1c9b7bed715a3a6c4453748f6f6b1f2a6203 (patch) | |
| tree | bbfd1052487a01a422ca0b5499e3516a6b11411d /MediaBrowser.Server.Mono/Program.cs | |
| parent | a76bbcfebe82452178836301ce1d1833968c50bd (diff) | |
update play queue
Diffstat (limited to 'MediaBrowser.Server.Mono/Program.cs')
| -rw-r--r-- | MediaBrowser.Server.Mono/Program.cs | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/MediaBrowser.Server.Mono/Program.cs b/MediaBrowser.Server.Mono/Program.cs index a9aed0fce..af6e00e25 100644 --- a/MediaBrowser.Server.Mono/Program.cs +++ b/MediaBrowser.Server.Mono/Program.cs @@ -42,7 +42,6 @@ namespace MediaBrowser.Server.Mono var applicationPath = Assembly.GetEntryAssembly().Location; var appFolderPath = Path.GetDirectoryName(applicationPath); - TryCopySqliteConfigFile(appFolderPath); SetSqliteProvider(); var options = new StartupOptions(Environment.GetCommandLineArgs()); @@ -74,20 +73,6 @@ namespace MediaBrowser.Server.Mono } } - private static void TryCopySqliteConfigFile(string appFolderPath) - { - try - { - File.Copy(Path.Combine(appFolderPath, "System.Data.SQLite.dll.config"), - Path.Combine(appFolderPath, "SQLitePCLRaw.provider.sqlite3.dll.config"), - true); - } - catch - { - - } - } - private static void SetSqliteProvider() { SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3()); @@ -260,7 +245,8 @@ namespace MediaBrowser.Server.Mono { var message = LogHelper.GetLogMessage(exception).ToString(); - if (message.IndexOf("InotifyWatcher", StringComparison.OrdinalIgnoreCase) == -1) + if (message.IndexOf("InotifyWatcher", StringComparison.OrdinalIgnoreCase) == -1 && + message.IndexOf("_IOCompletionCallback", StringComparison.OrdinalIgnoreCase) == -1) { Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception)); } |
