From 4abe362c62d224f7d6553187e9c9eb7fc3e38fad Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 22 Sep 2011 20:06:41 +0200 Subject: [PATCH] mgcp: Exit the method in case we have a parse failure Do not attempt to call transactionId on a PPFailure. --- callagent/MGCPCallAgent.st | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/callagent/MGCPCallAgent.st b/callagent/MGCPCallAgent.st index 78be0c3..dd9d1d0 100644 --- a/callagent/MGCPCallAgent.st +++ b/callagent/MGCPCallAgent.st @@ -155,7 +155,7 @@ MGCPCallAgentBase subclass: MGCPCallAgent [ | res data id trans | data := aData data copyFrom: 1 to: aData size. res := self parser parse: data asString onError: [ - self error: 'Parse error ', data asByteArray printString. + ^ self error: 'Parse error ', data asByteArray printString. ]. id := res transactionId asInteger.