浏览代码

Headless: Dispose of inputmanager in a catch-all try

Evan Husted 1 年之前
父节点
当前提交
b08e5db6d8
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/Ryujinx/Headless/HeadlessRyujinx.cs

+ 4 - 1
src/Ryujinx/Headless/HeadlessRyujinx.cs

@@ -301,7 +301,10 @@ namespace Ryujinx.Headless
                 _userChannelPersistence.ShouldRestart = false;
             }
 
-            _inputManager.Dispose();
+            try
+            {
+                _inputManager.Dispose();
+            } catch {}
 
             return;