smalltalk
/
osmo-st-mgcp
Archived
1
0
Fork 0

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:
Holger Hans Peter Freyther 2011-09-22 20:06:41 +02:00
parent a948ff8294
commit 4abe362c62
1 changed files with 1 additions and 1 deletions

View File

@ -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.