aboutsummaryrefslogtreecommitdiff
path: root/libdbusmenu-glib
diff options
context:
space:
mode:
Diffstat (limited to 'libdbusmenu-glib')
-rw-r--r--libdbusmenu-glib/client.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c
index 5ecfbde..5e1fe0c 100644
--- a/libdbusmenu-glib/client.c
+++ b/libdbusmenu-glib/client.c
@@ -521,11 +521,13 @@ get_properties_flush (DbusmenuClient * client)
{
DbusmenuClientPrivate * priv = DBUSMENU_CLIENT_GET_PRIVATE(client);
- if (priv->delayed_idle != 0) {
- g_source_remove(priv->delayed_idle);
- priv->delayed_idle = 0;
+ if (priv->delayed_idle == 0) {
+ return;
}
+ g_source_remove(priv->delayed_idle);
+ priv->delayed_idle = 0;
+
get_properties_idle(client);
dbus_g_connection_flush(priv->session_bus);