فهرست منبع

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;