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

sccp: Confirm a connection before sending the data

If we don't do it like this, we dispatch the data which might
send a RLSD... which would be send before there is a CC.
This commit is contained in:
Holger Hans Peter Freyther 2011-06-20 13:43:45 +02:00
parent 0543c8622d
commit 99d66ec76d
1 changed files with 7 additions and 6 deletions

View File

@ -376,17 +376,18 @@ deadlocks should not occur.'>
con := self connectionSpecies on: self.
"Confirm the message now and send any data"
"Confirm it without sending any new data bad"
con confirm: aMsg.
self newConnection: con.
res := Osmo.SCCPConnectionConfirm initWithSrc: (con srcRef) dst: (con dstRef).
self sendMsg: res toMessage.
"Confirm the message now and send any data"
aMsg data ifNotNil: [
con data: aMsg.
].
"Confirm it without sending any new data bad"
res := Osmo.SCCPConnectionConfirm initWithSrc: (con srcRef) dst: (con dstRef).
self sendMsg: res toMessage.
self newConnection: con.
^ con.
]