[gnome-games] retro-runner: Don't try to stop core on error



commit 625643021e534e9070c571c50b6129d11ce41b0a
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon Mar 30 01:52:08 2020 +0500

    retro-runner: Don't try to stop core on error
    
    If it crashed, it already stopped and trying to do it would cause another
    crash because we can't reach the runner process, causing infinite loop.
    
    Fixes https://gitlab.gnome.org/GNOME/gnome-games/-/issues/267

 src/retro/retro-runner.vala | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/retro/retro-runner.vala b/src/retro/retro-runner.vala
index df6ef44e..0f4b1931 100644
--- a/src/retro/retro-runner.vala
+++ b/src/retro/retro-runner.vala
@@ -289,7 +289,7 @@ public class Games.RetroRunner : Object, Runner {
 
                input_manager = null;
 
-               if (core.is_initiated)
+               if (!is_error && core.is_initiated)
                        core.stop ();
 
                core = null;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]