Fix #8028 - language server performance, fix warnings and critical errors
[roobuilder] / src / Spawn.vala
index cac96f3..3e09e1f 100644 (file)
@@ -325,8 +325,12 @@ public class Spawn : Object
                this.complete.connect( (res, str,  stderr) => {
                        loop.quit ();
                });
+               try {
+                       this.run();
+               } catch (GLib.Error e) {
+                       return -1;
+               }
                
-               this.run();
                 
                loop.run ();
                return this.result;