From 7d891f1e506421c8f05700d4b8d4df5b228eabf9 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Thu, 16 Sep 2010 10:47:46 +0200 Subject: empathy.c: check return value of unique_app_send_message (#629782) --- src/empathy.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src') 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)); -- cgit v1.2.3