From 17329d04ad4bfb9a0ec21aabfbf15f2a4dc3535c Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Fri, 7 Sep 2012 00:04:40 +0200 Subject: [PATCH] ftmod_libpri: Print warning message in lpwrap_stop_timer(), if timer is not on the active list Signed-off-by: Stefan Knoblich --- libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c b/libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c index 09fed0b72a..748b70a42f 100644 --- a/libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c +++ b/libs/freetdm/src/ftmod/ftmod_libpri/lpwrap_pri.c @@ -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;