Fixed DBusAny skipping values after string or bool

This commit is contained in:
WebFreak001 2017-04-23 21:14:25 +02:00
parent 406e7d9241
commit b7955764b8

View file

@ -160,8 +160,10 @@ T readIter(T)(DBusMessageIter *iter) if (canDBus!T) {
ret.explicitVariant = false; ret.explicitVariant = false;
if(ret.type == 's') { if(ret.type == 's') {
ret.str = readIter!string(iter); ret.str = readIter!string(iter);
return ret;
} else if(ret.type == 'b') { } else if(ret.type == 'b') {
ret.boolean = readIter!bool(iter); ret.boolean = readIter!bool(iter);
return ret;
} else if(dbus_type_is_basic(ret.type)) { } else if(dbus_type_is_basic(ret.type)) {
dbus_message_iter_get_basic(iter, &ret.int64); dbus_message_iter_get_basic(iter, &ret.int64);
} else if(ret.type == 'a') { } else if(ret.type == 'a') {