Spawn.vala
authorAlan Knowles <alan@roojs.com>
Mon, 29 Aug 2016 09:00:51 +0000 (17:00 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 29 Aug 2016 09:00:51 +0000 (17:00 +0800)
Spawn.vala

index 1601af1..0ee0486 100644 (file)
@@ -300,7 +300,7 @@ public class Spawn : Object
         this.err_src = (int) this.err_ch.add_watch (
                 IOCondition.OUT | IOCondition.IN  | IOCondition.PRI |  IOCondition.HUP |  IOCondition.ERR  ,
             (channel, condition) => {
-               return this.read(this.err_ch);
+               return this.err_ch != null ? this.read(this.err_ch)  : true;
             }
         );