aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-08-25 09:15:40 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-08-25 23:22:02 +0200
commit503f445d2c5f8910836b5b87f5668ab463a423a3 (patch)
treed205a2709d3fd5e594a4dea5eb318a922742cf25
parent7c13f4b975c9dd5bffd857f6acd2a0201574f3df (diff)
bsc: Do not re-start the grace timer when we are in the grace periodopenbsc/0.9.14-onwaves1
-rw-r--r--openbsc/src/osmo-bsc/osmo_bsc_rf.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/openbsc/src/osmo-bsc/osmo_bsc_rf.c b/openbsc/src/osmo-bsc/osmo_bsc_rf.c
index c64bbe5..8d7cc37 100644
--- a/openbsc/src/osmo-bsc/osmo_bsc_rf.c
+++ b/openbsc/src/osmo-bsc/osmo_bsc_rf.c
@@ -203,6 +203,11 @@ static void grace_timeout(void *_data)
static int enter_grace(struct osmo_bsc_rf *rf)
{
+ if (osmo_timer_pending(&rf->grace_timeout)) {
+ LOGP(DINP, LOGL_NOTICE, "RF Grace timer is pending. Not restarting.\n");
+ return 0;
+ }
+
rf->grace_timeout.cb = grace_timeout;
rf->grace_timeout.data = rf;
osmo_timer_schedule(&rf->grace_timeout, rf->gsm_network->bsc_data->mid_call_timeout, 0);