diff options
author | Ciaby <ciaby@rhizomatica.org> | 2014-11-16 23:06:47 -0600 |
---|---|---|
committer | Ciaby <ciaby@rhizomatica.org> | 2015-08-10 22:04:12 +0200 |
commit | 870bd59618dc1a14d540ff86150a892847ab3ff8 (patch) | |
tree | 744ebf463a0e697bf42d5953bc9b4454bca7912b /openbsc/src | |
parent | ef9fdd06889654b3a3f78cbab74676434144a17b (diff) |
Handover fix, needs to be tested.ciaby/2015-08-10
Diffstat (limited to 'openbsc/src')
-rw-r--r-- | openbsc/src/libbsc/handover_logic.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/handover_logic.c b/openbsc/src/libbsc/handover_logic.c index ff6e99346..d04b3d6ea 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); |