aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/indicator-application.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/indicator-application.c b/src/indicator-application.c
index c2dd16a..f9b200b 100644
--- a/src/indicator-application.c
+++ b/src/indicator-application.c
@@ -823,14 +823,16 @@ get_applications (GObject * obj, GAsyncResult * res, gpointer user_data)
GVariant * child;
GVariantIter * iter;
+ result = g_dbus_proxy_call_finish(priv->service_proxy, res, &error);
+
/* No one can cancel us anymore, we've completed! */
if (priv->get_apps_cancel != NULL) {
- g_object_unref(priv->get_apps_cancel);
- priv->get_apps_cancel = NULL;
+ if (error == NULL || error->domain != G_IO_ERROR || error->code != G_IO_ERROR_CANCELLED) {
+ g_object_unref(priv->get_apps_cancel);
+ priv->get_apps_cancel = NULL;
+ }
}
- result = g_dbus_proxy_call_finish(priv->service_proxy, res, &error);
-
if (error != NULL) {
g_warning("Unable to get application list: %s", error->message);
return;