ftmod_libpri: Print warning message in lpwrap_stop_timer(), if timer is not on the active list

Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
Stefan Knoblich 2012-09-07 00:04:40 +02:00
parent a035182582
commit 17329d04ad

View File

@ -238,6 +238,10 @@ int lpwrap_stop_timer(struct lpwrap_pri *spri, struct lpwrap_timer *timer)
ftdm_mutex_unlock(spri->timer_mutex);
if (!cur) {
ftdm_log_chan(spri->dchan, FTDM_LOG_WARNING, "-- Timer %p not found in list\n", timer);
}
timer->next = NULL;
timer->timeout = 0;
timer->callback = NULL;