summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-11-24 23:33:19 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-11-24 23:38:17 +0100
commitc5a334ef8bb42b2918d852a7c776e6a866a65b17 (patch)
treecadb51e94c0dc9b85c76f281d925aebe5d6c94a7
parentabb65601c2c78f831608cabe5f05ff0bde36994d (diff)
fakebts: Remove the SAPI when we receive a release request
Remove it before calling the block and sending the response. This way the callback could re-add it for force a double release.
-rw-r--r--fakebts/OML.st3
1 files changed, 3 insertions, 0 deletions
diff --git a/fakebts/OML.st b/fakebts/OML.st
index b396824..618b40a 100644
--- a/fakebts/OML.st
+++ b/fakebts/OML.st
@@ -806,6 +806,9 @@ Object subclass: LogicalChannel [
releaseSapiRequest: aSapi [
| rsl |
<category: 'input'>
+ "Remove the key and if no exception is generated, continue"
+ sapis removeKey: aSapi.
+
onReleaseReqCB isNil
ifFalse: [onReleaseReqCB value: aSapi].