From ab11ec9ab94ffdf164daa2b5006dab4e388a966e Mon Sep 17 00:00:00 2001 From: Klement Sekera Date: Mon, 26 Nov 2018 15:37:28 +0100 Subject: vapi: break if parsing progress cannot be made Change-Id: I1b76994f674a045f7fce3d61ef2aa5294ddb53a9 Signed-off-by: Klement Sekera --- src/vpp-api/vapi/vapi_json_parser.py | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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 -- cgit 1.2.3-korg