aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2018-11-26 15:37:28 +0100
committerOle Trøan <otroan@employees.org>2018-11-26 16:33:26 +0000
commitab11ec9ab94ffdf164daa2b5006dab4e388a966e (patch)
tree43645eda62037bc7d40ec03074fe00e1a4062bd4
parentddf6e08d2e3fc1614430e26dea632fbc79df2906 (diff)
vapi: break if parsing progress cannot be made
Change-Id: I1b76994f674a045f7fce3d61ef2aa5294ddb53a9 Signed-off-by: Klement Sekera <ksekera@cisco.com>
-rw-r--r--src/vpp-api/vapi/vapi_json_parser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpp-api/vapi/vapi_json_parser.py b/src/vpp-api/vapi/vapi_json_parser.py
index 8728a1a6bc2..39acca0b538 100644
--- a/src/vpp-api/vapi/vapi_json_parser.py
+++ b/src/vpp-api/vapi/vapi_json_parser.py
@@ -393,6 +393,7 @@ class JsonParser(object):
if progress <= last_progress:
# cannot make forward progress
self.exceptions.extend(exceptions)
+ break
exceptions = []
last_progress = progress
progress = 0