[empathy] empathy-accounts.c: check return value of unique_app_send_message (#629782)
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy-accounts.c: check return value of unique_app_send_message (#629782)
- Date: Mon, 27 Sep 2010 13:19:49 +0000 (UTC)
commit 23fc6264db524d903b3592f302dbcedae0edfab5
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Sep 16 10:47:55 2010 +0200
empathy-accounts.c: check return value of unique_app_send_message (#629782)
src/empathy-accounts.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-accounts.c b/src/empathy-accounts.c
index 89673ee..788bc89 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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]