summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCiaby <ciaby@rhizomatica.org>2014-11-16 23:06:47 -0600
committerCiaby <ciaby@rhizomatica.org>2015-07-28 07:43:53 -0500
commit94d6e6cc265b3b582a4e12a99ccc8a01113eb8a0 (patch)
treeefd8baa24674f9e9b32cf82ff6cd1418d17e6b2d
parent45ab7790b1bcba0673417999117b0b0b51f9f3d4 (diff)
Handover fix, needs to be tested.
-rw-r--r--openbsc/src/libbsc/handover_logic.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/handover_logic.c b/openbsc/src/libbsc/handover_logic.c
index ff6e993..d04b3d6 100644
--- a/openbsc/src/libbsc/handover_logic.c
+++ b/openbsc/src/libbsc/handover_logic.c
@@ -100,6 +100,10 @@ int bsc_handover_start(struct gsm_lchan *old_lchan, struct gsm_bts *bts)
if (bsc_ho_by_old_lchan(old_lchan))
return -EBUSY;
+ /* Don't do handover of a already closed channel */
+ if (!old_lchan->conn->subscr)
+ return -EBUSY;
+
DEBUGP(DHO, "(old_lchan on BTS %u, new BTS %u)\n",
old_lchan->ts->trx->bts->nr, bts->nr);