From: Alan Knowles Date: Mon, 29 Aug 2016 09:00:51 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=ef187eda803e28022dc7cf5672794d5c82eeedfa Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index 1601af14..0ee04860 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -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; } );