projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67e125c
)
A schedule id of 0 is not possible and is used to flag that we want to add a new...
author
Tilghman Lesher
<tilghman@meg.abyt.es>
Thu, 30 Aug 2007 20:31:45 +0000
(20:31 +0000)
committer
Tilghman Lesher
<tilghman@meg.abyt.es>
Thu, 30 Aug 2007 20:31:45 +0000
(20:31 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@81390
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
main/sched.c
patch
|
blob
|
history
diff --git
a/main/sched.c
b/main/sched.c
index
602c851
..
f85c0dc
100644
(file)
--- a/
main/sched.c
+++ b/
main/sched.c
@@
-209,7
+209,8
@@
static int sched_settime(struct timeval *tv, int when)
int ast_sched_replace_variable(int old_id, struct sched_context *con, int when, ast_sched_cb callback, void *data, int variable)
{
- if (old_id > -1)
+ /* 0 means the schedule item is new; do not delete */
+ if (old_id > 0)
ast_sched_del(con, old_id);
return ast_sched_add_variable(con, when, callback, data, variable);
}