bsc: Do not re-start the grace timer when we are in the grace period
This commit is contained in:
parent
7c13f4b975
commit
503f445d2c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue