threshold_timer_update_intv(): call osmo_timer_del() unconditionally

osmo_timer_del() does check if a timer is active internally.

Change-Id: Icaf6f31a3235a3fb6993fa2bb35190150e35c2c2
changes/56/28956/1
Vadim Yanitskiy 4 months ago
parent 1c6a3459cd
commit 19faae85c6
  1. 3
      CommonLibs/trx_rate_ctr.cpp

@ -312,8 +312,7 @@ static void threshold_timer_update_intv() {
return;
if (llist_empty(&threshold_list)) {
if (osmo_timer_pending(&threshold_timer))
osmo_timer_del(&threshold_timer);
osmo_timer_del(&threshold_timer);
return;
}

Loading…
Cancel
Save