protobuf: fix loading embedded messages

This commit is contained in:
Jan Pochyla 2016-11-11 11:21:18 +01:00
parent 4f8e01c5df
commit cf2bc1a28e
1 changed files with 1 additions and 0 deletions

View File

@ -176,6 +176,7 @@ class MessageType(Type):
if issubclass(ftype, MessageType):
flen = await UVarintType.load(source)
slen = source.set_limit(flen)
target.send((field, None))
await ftype.load(source, target)
source.set_limit(slen)
else: