diff options
author | Ted Gould <ted@gould.cx> | 2010-07-20 11:00:35 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-07-20 11:00:35 -0500 |
commit | 57547736e1a274928546a291147a199f67d1bc50 (patch) | |
tree | c84068a9dd5492739d1971b5d2388905085b6b0b | |
parent | 2e95e1f828ce1b75331e99883244c94f7629408f (diff) | |
download | libdbusmenu-57547736e1a274928546a291147a199f67d1bc50.tar.gz libdbusmenu-57547736e1a274928546a291147a199f67d1bc50.tar.bz2 libdbusmenu-57547736e1a274928546a291147a199f67d1bc50.zip |
Ensuring that we only reply once. Shouldn't be an issue...
-rw-r--r-- | libdbusmenu-glib/client.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libdbusmenu-glib/client.c b/libdbusmenu-glib/client.c index bd391e0..84e0efc 100644 --- a/libdbusmenu-glib/client.c +++ b/libdbusmenu-glib/client.c @@ -429,8 +429,12 @@ get_properties_callback (DBusGProxy *proxy, GPtrArray *OUT_properties, GError *e properties_listener_t * listener = find_listener(listeners, 0, id); - listener->callback(proxy, properties, NULL, listener->user_data); - listener->replied = TRUE; + if (!listener->replied) { + listener->callback(proxy, properties, NULL, listener->user_data); + listener->replied = TRUE; + } else { + g_warning("Odd, we've already replied to the listener on ID %d", id); + } } /* Provide errors for those who we can't */ |