Use g_assert to check if connection is alive
authorPeng Huang <shawn.p.huang@gmail.com>
Thu, 3 Jun 2010 10:13:14 +0000 (18:13 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Thu, 3 Jun 2010 15:14:20 +0000 (23:14 +0800)
src/ibusconnection.c

index 018119c..94a25ea 100644 (file)
@@ -738,7 +738,7 @@ ibus_connection_call_with_reply_valist (IBusConnection     *connection,
     g_assert (path != NULL);
     g_assert (interface != NULL);
     g_assert (member != NULL);
-    g_return_val_if_fail (ibus_connection_is_connected (connection), FALSE);
+    g_assert (ibus_connection_is_connected (connection));
 
     IBusConnectionPrivate *priv;
     priv = IBUS_CONNECTION_GET_PRIVATE (connection);