- Rewind Message prior to access for peekValueType.

Fixes #8

(cherry picked from commit f8bed4b0faa2c0a2bc7037f3a55105060d56dbdb)
This commit is contained in:
Jeremy Prater
2018-12-14 06:50:29 -08:00
committed by Stanislav Angelovič
parent a6bb8c070e
commit eb58d2fa52

View File

@@ -51,6 +51,7 @@ void Variant::deserializeFrom(Message& msg)
std::string Variant::peekValueType() const
{
msg_.rewind(false);
std::string type;
std::string contents;
msg_.peekType(type, contents);