Spawn.vala
authorAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:33:33 +0000 (18:33 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 2 May 2014 10:33:33 +0000 (18:33 +0800)
Spawn.vala

index 90ad371..4e46612 100644 (file)
@@ -378,8 +378,8 @@ public class Spawn : Object
         
         //print("write_char retunred:" + JSON.stringify(res) +  ' ' +JSON.stringify(ret)  );
         
-            if (res != GLib.IOStatus.NORMAL) {
-                throw "Write failed";
+        if (res != GLib.IOStatus.NORMAL) {
+            throw "Write failed";
         }
         //return ret.value;
         return str.length;