From 23fc6264db524d903b3592f302dbcedae0edfab5 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Sep 2010 10:47:55 +0200 Subject: empathy-accounts.c: check return value of unique_app_send_message (#629782) --- src/empathy-accounts.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/empathy-accounts.c b/src/empathy-accounts.c index 89673ee48..788bc89e4 100644 --- a/src/empathy-accounts.c +++ b/src/empathy-accounts.c @@ -222,10 +222,12 @@ main (int argc, char *argv[]) if (unique_app_is_running (unique_app)) { - unique_app_send_message (unique_app, UNIQUE_ACTIVATE, NULL); - - g_object_unref (unique_app); - return EXIT_SUCCESS; + if (unique_app_send_message (unique_app, UNIQUE_ACTIVATE, NULL) == + UNIQUE_RESPONSE_OK) + { + g_object_unref (unique_app); + return EXIT_SUCCESS; + } } account_manager = tp_account_manager_dup (); -- cgit v1.2.3