Spawn.vala
authorAlan Knowles <alan@roojs.com>
Tue, 26 Sep 2017 09:20:19 +0000 (17:20 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 26 Sep 2017 09:20:19 +0000 (17:20 +0800)
Spawn.vala

index c9e67f5..59e1a64 100644 (file)
@@ -156,7 +156,9 @@ public class Spawn : Object
         if (this.cfg.args.length < 0) {
             throw new SpawnError.NO_ARGS("No arguments");
         }
-        this.run((res, output) => { });
+        if (!this.cfg.async) {
+               this.run((res, output) => { });
+        }
     
     }