mgcp: Exit the method in case we have a parse failure
Do not attempt to call transactionId on a PPFailure.
This commit is contained in:
parent
a948ff8294
commit
4abe362c62
|
@ -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.
|
||||
|
|
Reference in New Issue