aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libempathy/empathy-idle.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libempathy/empathy-idle.c b/libempathy/empathy-idle.c
index 66434a81e..9eea49771 100644
--- a/libempathy/empathy-idle.c
+++ b/libempathy/empathy-idle.c
@@ -410,12 +410,14 @@ empathy_idle_init (EmpathyIdle *idle)
g_clear_error (&error);
}
priv->status = mission_control_get_presence_message_actual (priv->mc, &error);
- if (error) {
- DEBUG ("Error getting actual presence message: %s", error->message);
-
+ if (error || G_STR_EMPTY (priv->status)) {
g_free (priv->status);
priv->status = NULL;
- g_clear_error (&error);
+
+ if (error) {
+ DEBUG ("Error getting actual presence message: %s", error->message);
+ g_clear_error (&error);
+ }
}
dbus_g_proxy_connect_signal (DBUS_G_PROXY (priv->mc),