From: Alan Knowles Date: Fri, 2 May 2014 10:47:45 +0000 (+0800) Subject: Spawn.vala X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=34f70eb99db47b3eb48746c3a91920720beccf31 Spawn.vala --- diff --git a/Spawn.vala b/Spawn.vala index af6bd4a1..ad2680de 100644 --- a/Spawn.vala +++ b/Spawn.vala @@ -346,9 +346,9 @@ public class Spawn : Object Process.close_pid(this.pid); // hopefully kills it.. this.pid = -1; } - if (this.in_ch) this.in_ch.shutdown(true); - if (this.out_ch) this.out_ch.shutdown(true); - if (this.err_ch) this.err_ch.shutdown(true); + if (this.in_ch != null) this.in_ch.shutdown(true); + if (this.out_ch != null) this.out_ch.shutdown(true); + if (this.err_ch != null) this.err_ch.shutdown(true); // blank out channels this.in_ch = null; this.err_ch = null;