don't get stuck in loop
This commit is contained in:
parent
e1596e8992
commit
d2bded47b1
@ -244,9 +244,9 @@ notify(DBusMessage *dmsg) {
|
|||||||
dunst_printf(DEBUG, "extracting hints\n");
|
dunst_printf(DEBUG, "extracting hints\n");
|
||||||
while (dbus_message_iter_get_arg_type(&hints) != DBUS_TYPE_INVALID) {
|
while (dbus_message_iter_get_arg_type(&hints) != DBUS_TYPE_INVALID) {
|
||||||
dbus_message_iter_recurse(&hints, &hint);
|
dbus_message_iter_recurse(&hints, &hint);
|
||||||
printf("Type: %d\n", dbus_message_iter_get_arg_type(&hint));
|
|
||||||
while (dbus_message_iter_get_arg_type(&hint) != DBUS_TYPE_INVALID) {
|
while (dbus_message_iter_get_arg_type(&hint) != DBUS_TYPE_INVALID) {
|
||||||
if(dbus_message_iter_get_arg_type(&hint) != DBUS_TYPE_STRING) {
|
if(dbus_message_iter_get_arg_type(&hint) != DBUS_TYPE_STRING) {
|
||||||
|
dbus_message_iter_next(&hints);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
dbus_message_iter_get_basic(&hint, &hint_name);
|
dbus_message_iter_get_basic(&hint, &hint_name);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user