bsc: Do not re-start the grace timer when we are in the grace period

This commit is contained in:
Holger Hans Peter Freyther 2011-08-25 09:15:40 +02:00
parent ed0374ffeb
commit baa1a2df20
1 changed files with 5 additions and 0 deletions

View File

@ -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(DLINP, 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);