diff options
Diffstat (limited to 'src/common')
-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); |