corrected unique JSON keys in executeGet()

This commit is contained in:
john30
2017-07-02 10:30:52 +02:00
parent 41eaa3ad4b
commit 6505494b93
+2 -2
View File
@@ -1754,9 +1754,9 @@ result_t MainLoop::executeGet(const vector<string>& args, bool* connected, ostri
}
name = message->getName();
bool same = sameCircuit && name == lastName;
if (!same && sameCircuit && it+1 != messages.end()) {
if (!same && it+1 != messages.end()) {
Message* next = *(it+1);
same = next->getName() == name;
same = next->getCircuit() == lastCircuit && next->getName() == name;
}
message->decodeJson(!first, same, raw, verbosity, ostream);
lastName = name;