[gnome-builder/wip/chergert/multi-process] worker: connect to signal after checking for failure
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/multi-process] worker: connect to signal after checking for failure
- Date: Tue, 20 Oct 2015 07:16:42 +0000 (UTC)
commit 0019a32dd7cc6f2dc0b3819632b67970c517c27c
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 20 00:15:55 2015 -0700
worker: connect to signal after checking for failure
libide/ide-worker-manager.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/libide/ide-worker-manager.c b/libide/ide-worker-manager.c
index 1076b99..cda872b 100644
--- a/libide/ide-worker-manager.c
+++ b/libide/ide-worker-manager.c
@@ -137,17 +137,18 @@ ide_worker_manager_constructed (GObject *object)
NULL,
&error);
+ if (error != NULL)
+ {
+ g_printerr ("%s\n", error->message);
+ exit (EXIT_FAILURE);
+ }
+
g_signal_connect_object (self->dbus_server,
"new-connection",
G_CALLBACK (ide_worker_manager_new_connection_cb),
self,
G_CONNECT_SWAPPED);
- if (error != NULL)
- {
- g_printerr ("%s\n", error->message);
- exit (EXIT_FAILURE);
- }
g_assert (self->dbus_server != NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]