aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-16 16:47:46 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-09-27 21:19:29 +0800
commit7d891f1e506421c8f05700d4b8d4df5b228eabf9 (patch)
tree687a29c53b69a01e062ffdb3928ad64baa431dfb
parent15c23ab80d0b2c5dba14ef5c8a671b8d157a2c2b (diff)
downloadgsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.tar
gsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.tar.gz
gsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.tar.bz2
gsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.tar.lz
gsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.tar.xz
gsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.tar.zst
gsoc2013-empathy-7d891f1e506421c8f05700d4b8d4df5b228eabf9.zip
empathy.c: check return value of unique_app_send_message (#629782)
-rw-r--r--src/empathy.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/empathy.c b/src/empathy.c
index 0128b7b00..f22d69b25 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -461,10 +461,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;
+ }
}
notify_init (_(PACKAGE_NAME));