diff options
author | Ciaby <ciaby@rhizomatica.org> | 2014-11-16 23:06:47 -0600 |
---|---|---|
committer | Ciaby <ciaby@rhizomatica.org> | 2014-11-16 23:06:47 -0600 |
commit | cc4f017034bce80516c09bf2347a094d36954500 (patch) | |
tree | e64bd7328cd64d0fa00087d418f0ed0b4552ea88 | |
parent | 0c0453c74165f49439a952787496d4c7dfe8f3dc (diff) |
Handover fix, needs to be tested.
-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 22f9883fd..817e72cfc 100644 --- a/openbsc/src/libbsc/handover_logic.c +++ b/openbsc/src/libbsc/handover_logic.c @@ -93,6 +93,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); |