瀏覽代碼

魔盒关机的Log优化

felix 1 年之前
父節點
當前提交
4aba4181ea
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      Vinno.FIS.Sonopost/App.xaml.cs

+ 2 - 1
Vinno.FIS.Sonopost/App.xaml.cs

@@ -248,6 +248,8 @@ namespace Vinno.FIS.Sonopost
                         SystemEvents.SessionEnded -= OnSessionEnded;
                         DisposeWebHost();
                         AppManager.Instance.DisposeAllManagers();
+                        Logger.WriteLineWarn("=======================Sonopost Shutdown=======================");
+                        _manualResetEvent.Set();
                     }
                     catch (Exception ex)
                     {
@@ -255,7 +257,6 @@ namespace Vinno.FIS.Sonopost
                     }
                 });
                 _manualResetEvent.WaitOne(3000);
-                Logger.WriteLineWarn("=======================Sonopost Shutdown=======================");
             }
             catch (Exception ex)
             {