Browse Source

Headless: Dispose of inputmanager in a catch-all try

Evan Husted 1 year ago
parent
commit
b08e5db6d8
1 changed files with 4 additions and 1 deletions
  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;
                 _userChannelPersistence.ShouldRestart = false;
             }
             }
 
 
-            _inputManager.Dispose();
+            try
+            {
+                _inputManager.Dispose();
+            } catch {}
 
 
             return;
             return;