浏览代码

update play queue

Luke Pulverenti 8 年之前
父节点
当前提交
316b1c9b7b
共有 1 个文件被更改,包括 2 次插入16 次删除
  1. 2 16
      MediaBrowser.Server.Mono/Program.cs

+ 2 - 16
MediaBrowser.Server.Mono/Program.cs

@@ -42,7 +42,6 @@ namespace MediaBrowser.Server.Mono
             var applicationPath = Assembly.GetEntryAssembly().Location;
             var applicationPath = Assembly.GetEntryAssembly().Location;
             var appFolderPath = Path.GetDirectoryName(applicationPath);
             var appFolderPath = Path.GetDirectoryName(applicationPath);
 
 
-            TryCopySqliteConfigFile(appFolderPath);
             SetSqliteProvider();
             SetSqliteProvider();
 
 
             var options = new StartupOptions(Environment.GetCommandLineArgs());
             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()
         private static void SetSqliteProvider()
         {
         {
             SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3());
             SQLitePCL.raw.SetProvider(new SQLitePCL.SQLite3Provider_sqlite3());
@@ -260,7 +245,8 @@ namespace MediaBrowser.Server.Mono
             {
             {
                 var message = LogHelper.GetLogMessage(exception).ToString();
                 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));
                     Environment.Exit(System.Runtime.InteropServices.Marshal.GetHRForException(exception));
                 }
                 }