diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-16 16:47:46 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-09-27 21:19:29 +0800 |
commit | 7d891f1e506421c8f05700d4b8d4df5b228eabf9 (patch) | |
tree | 687a29c53b69a01e062ffdb3928ad64baa431dfb /src | |
parent | 15c23ab80d0b2c5dba14ef5c8a671b8d157a2c2b (diff) | |
download | gsoc2013-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)
Diffstat (limited to 'src')
-rw-r--r-- | src/empathy.c | 10 |
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)); |