[gnome-builder] subprocess: handle NULL connection
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] subprocess: handle NULL connection
- Date: Wed, 14 Sep 2016 08:22:59 +0000 (UTC)
commit 4538844d83d1d48e80451e293b616c80e9244c31
Author: Christian Hergert <chergert redhat com>
Date: Tue Sep 13 23:38:34 2016 -0700
subprocess: handle NULL connection
We can clear connection now when we finish the operation, so handle that
without an assertion.
libide/subprocess/ide-breakout-subprocess.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/libide/subprocess/ide-breakout-subprocess.c b/libide/subprocess/ide-breakout-subprocess.c
index 73a7bb4..fc03b6f 100644
--- a/libide/subprocess/ide-breakout-subprocess.c
+++ b/libide/subprocess/ide-breakout-subprocess.c
@@ -480,10 +480,9 @@ ide_breakout_subprocess_send_signal (IdeSubprocess *subprocess,
IDE_ENTRY;
g_assert (IDE_IS_BREAKOUT_SUBPROCESS (self));
- g_assert (G_IS_DBUS_CONNECTION (self->connection));
/* Signal delivery is not guaranteed, so we can drop this on the floor. */
- if (self->client_has_exited)
+ if (self->client_has_exited || self->connection == NULL)
IDE_EXIT;
IDE_TRACE_MSG ("Sending signal %d to pid %u", signal_num, (guint)self->client_pid);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]