X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Spawn.vala;h=ad2680dec2092dbedb6c992202cdf496e869dbff;hb=34f70eb99db47b3eb48746c3a91920720beccf31;hp=af6bd4a1ae943746f3af6487c3bad153b3f641cf;hpb=62c19d5aef200276d91630847900098a2db37ec8;p=gitlive 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;