aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/xmlrpc-client.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2009-05-01 21:48:01 -0300
committerLeandro A. F. Pereira <leandro@hardinfo.org>2009-05-01 21:48:01 -0300
commitd42d81949a49fa71cc84f2e4120b65fd91cb61b2 (patch)
tree6b0bf5d4b4c22f69a21f1e4f9d18d528469c3d5c /hardinfo2/xmlrpc-client.c
parentddf9b782e39355db410ae4225d7a41a8dea902c4 (diff)
Makes the XMLRPC client synchronous (fixes some stability problems)
Diffstat (limited to 'hardinfo2/xmlrpc-client.c')
-rw-r--r--hardinfo2/xmlrpc-client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hardinfo2/xmlrpc-client.c b/hardinfo2/xmlrpc-client.c
index ae8b1078..2d3b21e8 100644
--- a/hardinfo2/xmlrpc-client.c
+++ b/hardinfo2/xmlrpc-client.c
@@ -27,11 +27,11 @@ static SoupSession *session = NULL;
void xmlrpc_init(void)
{
if (!loop) {
- loop = g_main_loop_new(FALSE, TRUE);
+ loop = g_main_loop_new(FALSE, FALSE);
}
if (!session) {
- session = soup_session_async_new_with_options(SOUP_SESSION_TIMEOUT, 10, NULL);
+ session = soup_session_sync_new_with_options(SOUP_SESSION_TIMEOUT, 10, NULL);
}
}