Merge pull request #13 from WebFreak001/fix-skips

Fixed DBusAny skipping values after string or bool
This commit is contained in:
Tristan Hume 2017-04-23 16:13:13 -04:00 committed by GitHub
commit dd29457e4c

View file

@ -164,8 +164,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') {