summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCiaby <ciaby@rhizomatica.org>2014-11-16 23:06:47 -0600
committerCiaby <ciaby@rhizomatica.org>2015-08-10 22:04:12 +0200
commit870bd59618dc1a14d540ff86150a892847ab3ff8 (patch)
tree744ebf463a0e697bf42d5953bc9b4454bca7912b
parentef9fdd06889654b3a3f78cbab74676434144a17b (diff)
Handover fix, needs to be tested.ciaby/2015-08-10
-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);