From f7f4feca8e8110a6b99888728f2d3b3285441ae3 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Thu, 25 Aug 2011 09:15:40 +0200 Subject: bsc: Do not re-start the grace timer when we are in the grace period --- openbsc/src/osmo-bsc/osmo_bsc_rf.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'openbsc/src') diff --git a/openbsc/src/osmo-bsc/osmo_bsc_rf.c b/openbsc/src/osmo-bsc/osmo_bsc_rf.c index 6cd3a3ffd..430b230fb 100644 --- a/openbsc/src/osmo-bsc/osmo_bsc_rf.c +++ b/openbsc/src/osmo-bsc/osmo_bsc_rf.c @@ -239,6 +239,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); -- cgit v1.2.3