diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-16 16:47:55 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-27 21:19:29 +0800 |
commit | 23fc6264db524d903b3592f302dbcedae0edfab5 (patch) | |
tree | eb64379fc031f821f1c0ff0e7a45b33c9055e336 | |
parent | 7d891f1e506421c8f05700d4b8d4df5b228eabf9 (diff) | |
download | gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.tar gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.tar.gz gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.tar.bz2 gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.tar.lz gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.tar.xz gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.tar.zst gsoc2013-empathy-23fc6264db524d903b3592f302dbcedae0edfab5.zip |
empathy-accounts.c: check return value of unique_app_send_message (#629782)
-rw-r--r-- | 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 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 (); |