From 34f70eb99db47b3eb48746c3a91920720beccf31 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 2 May 2014 18:47:45 +0800 Subject: [PATCH] Spawn.vala --- Spawn.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2