aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-05 15:17:16 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-03-05 15:17:16 +0000
commit5e698ea1ac08397eef3280e0c30ae8d1853edf29 (patch)
tree2eeb9f8ad459294f26a38c6be262c40c28951fb4 /include
parent8e1a7851aabb4e7f8682119cec0cafef06a50565 (diff)
Correctly initialize retransid in SIP, and ensure that the warning when failing to delete a schedule entry can actually hit the log.
(closes issue #12140) Reported by: slavon Patches: sch2.patch uploaded by slavon (license 288) (Patch slightly modified by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@106015 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/sched.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/sched.h b/include/asterisk/sched.h
index 84a65a07a..5476dadf7 100644
--- a/include/asterisk/sched.h
+++ b/include/asterisk/sched.h
@@ -38,7 +38,7 @@ extern "C" {
#define AST_SCHED_DEL(sched, id) \
do { \
int _count = 0; \
- while (id > -1 && ast_sched_del(sched, id) && _count++ < 10) \
+ while (id > -1 && ast_sched_del(sched, id) && ++_count < 10) \
usleep(1); \
if (_count == 10) \
ast_log(LOG_WARNING, "Unable to cancel schedule ID %d. This is probably a bug (%s: %s, line %d).\n", id, __FILE__, __PRETTY_FUNCTION__, __LINE__); \