diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-01-25 18:43:20 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2013-03-23 11:39:32 +0100 |
commit | 470a6ced9a76812127ce538f124ae41564fd10de (patch) | |
tree | 13560a1ae54d5bf8d88d9efbe415ff5b4b9890bd | |
parent | 118eb43ba52340f3bfaaf254e00bbd5c07681b57 (diff) |
oml: Only shut the bts down once
If the shutdown timer is already running do not deactivate the RF and
do not close the trx. This is addressing another instance of the following
warning:
[ERROR] : DeviceMng_ValidateL1Handle() => Invalid layer 1 handle
-rw-r--r-- | src/common/bts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/common/bts.c b/src/common/bts.c index 8cb64c46..bc60479d 100644 --- a/src/common/bts.c +++ b/src/common/bts.c @@ -126,6 +126,12 @@ void bts_shutdown(struct gsm_bts *bts, const char *reason) { struct gsm_bts_trx *trx; + if (osmo_timer_pending(&shutdown_timer)) { + LOGP(DOML, LOGL_NOTICE, + "BTS is already being shutdown.\n"); + return; + } + LOGP(DOML, LOGL_NOTICE, "Shutting down BTS %u, Reason %s\n", bts->nr, reason); |