[svn-commits] russell: branch group/sip_session_timers r84366 - /team/group/sip_session_tim...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Oct 2 08:44:41 CDT 2007
Author: russell
Date: Tue Oct 2 08:44:41 2007
New Revision: 84366
URL: http://svn.digium.com/view/asterisk?view=rev&rev=84366
Log:
Fix a small logic error. It is possible for the sched id to be -1 here and we
don't want to call ast_sched_del() in that case
Modified:
team/group/sip_session_timers/channels/chan_sip.c
Modified: team/group/sip_session_timers/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/team/group/sip_session_timers/channels/chan_sip.c?view=diff&rev=84366&r1=84365&r2=84366
==============================================================================
--- team/group/sip_session_timers/channels/chan_sip.c (original)
+++ team/group/sip_session_timers/channels/chan_sip.c Tue Oct 2 08:44:41 2007
@@ -2543,9 +2543,8 @@
append_history(p, "SchedDestroy", "%d ms", ms);
p->autokillid = ast_sched_add(sched, ms, __sip_autodestruct, dialog_ref(p));
- if (p->st_active == TRUE && p->st_schedid != 0) {
+ if (p->st_active == TRUE && p->st_schedid > 0)
stop_session_timer(p);
- }
}
/*! \brief Cancel destruction of SIP dialog.
More information about the svn-commits
mailing list