[gnome-builder] git: allow long running dbus method calls



commit 6b456ed76875357b8d91542e06f96fb760073a99
Author: Christian Hergert <chergert redhat com>
Date:   Wed Apr 10 21:06:22 2019 -0700

    git: allow long running dbus method calls
    
    This can happen when cloning a repository, for example.

 src/plugins/git/gbp-git-client.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/git/gbp-git-client.c b/src/plugins/git/gbp-git-client.c
index 98b19323c..48a868b2c 100644
--- a/src/plugins/git/gbp-git-client.c
+++ b/src/plugins/git/gbp-git-client.c
@@ -99,6 +99,9 @@ gbp_git_client_subprocess_spawned (GbpGitClient            *self,
                                                   NULL,
                                                   NULL);
 
+  /* We can have long running operations, so set no timeout */
+  g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (self->service), G_MAXINT);
+
   queued = g_steal_pointer (&self->get_service.head);
 
   self->get_service.head = NULL;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]