Skip to content
Snippets Groups Projects
Commit 5e4ca48e authored by pierre-luc's avatar pierre-luc
Browse files

[#1842] [#1843] An attempt at improving the expected behaviour that can't

be achieved in these bugs. A default timeout of 30sec is used for
Dbus in sflphone-client-gnome.
parent c3e3f6a2
No related branches found
No related tags found
No related merge requests found
...@@ -34,6 +34,8 @@ ...@@ -34,6 +34,8 @@
#include <actions.h> #include <actions.h>
#include <string.h> #include <string.h>
#define DEFAULT_DBUS_TIMEOUT 30000
DBusGConnection * connection; DBusGConnection * connection;
DBusGProxy * callManagerProxy; DBusGProxy * callManagerProxy;
DBusGProxy * configurationManagerProxy; DBusGProxy * configurationManagerProxy;
...@@ -389,6 +391,12 @@ dbus_connect () ...@@ -389,6 +391,12 @@ dbus_connect ()
"errorAlert", G_TYPE_INT , G_TYPE_INVALID); "errorAlert", G_TYPE_INT , G_TYPE_INVALID);
dbus_g_proxy_connect_signal (configurationManagerProxy, dbus_g_proxy_connect_signal (configurationManagerProxy,
"errorAlert", G_CALLBACK(error_alert), NULL, NULL); "errorAlert", G_CALLBACK(error_alert), NULL, NULL);
/* Defines a default timeout for the proxies */
dbus_g_proxy_set_default_timeout(callManagerProxy, DEFAULT_DBUS_TIMEOUT);
dbus_g_proxy_set_default_timeout(instanceProxy, DEFAULT_DBUS_TIMEOUT);
dbus_g_proxy_set_default_timeout(configurationManagerProxy, DEFAULT_DBUS_TIMEOUT);
return TRUE; return TRUE;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment