From ddecaa7bc8b82c0a51ba4c00b7e616cc6d6c7a7d Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Mon, 23 Aug 2010 20:21:52 +0200 Subject: Reworked server_sync() and renamed to server_ping(). This function now returns TRUE when the server is reachable and responds. --- communication_source.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'communication_source.c') diff --git a/communication_source.c b/communication_source.c index d2e7179..509366f 100644 --- a/communication_source.c +++ b/communication_source.c @@ -22,7 +22,7 @@ gboolean comsrc_check(GSource *source) { gboolean comsrc_dispatch(GSource *source, GSourceFuncs callback, gpointer user_data) { g_debug("comsrc_dispatch(), callback is %x, user_data is %x", callback, user_data); struct server *server = g_queue_pop_tail(jobqueue); - server_sync(server); + server_ping(server); return TRUE; } -- cgit v1.2.3