[gnome-builder/wip/chergert/multi-process: 47/58] worker: ensure guid is available for connection
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/multi-process: 47/58] worker: ensure guid is available for connection
- Date: Thu, 29 Oct 2015 00:38:16 +0000 (UTC)
commit f966bf5009b03b3278ac5231f3a4fd2906261951
Author: Christian Hergert <chergert redhat com>
Date: Tue Oct 20 18:24:15 2015 -0700
worker: ensure guid is available for connection
libide/ide-worker-manager.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libide/ide-worker-manager.c b/libide/ide-worker-manager.c
index f768aa2..4a5d6f2 100644
--- a/libide/ide-worker-manager.c
+++ b/libide/ide-worker-manager.c
@@ -246,9 +246,13 @@ ide_worker_manager_get_worker_process (IdeWorkerManager *self,
if (worker_process == NULL)
{
- worker_process = ide_worker_process_new (self->argv0,
- plugin_name,
- g_dbus_server_get_client_address (self->dbus_server));
+ g_autofree gchar *address = NULL;
+
+ address = g_strdup_printf ("%s,guid=%s",
+ g_dbus_server_get_client_address (self->dbus_server),
+ g_dbus_server_get_guid (self->dbus_server));
+
+ worker_process = ide_worker_process_new (self->argv0, plugin_name, address);
g_hash_table_insert (self->plugin_name_to_worker, g_strdup (plugin_name), worker_process);
ide_worker_process_run (worker_process);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]