提交 d4c7ae05 authored 作者: Anthony Minessale's avatar Anthony Minessale

let sched_cancel operate on both task id and group id

上级 84c3e3ad
......@@ -1343,7 +1343,16 @@ SWITCH_STANDARD_APP(sched_cancel_function)
if (zstr(group)) {
group = switch_core_session_get_uuid(session);
}
switch_scheduler_del_task_group(group);
if (switch_is_digit_string(group)) {
int64_t tmp;
tmp = (uint32_t) atoi(group);
if (tmp > 0) {
switch_scheduler_del_task_id((uint32_t) tmp);
}
} else {
switch_scheduler_del_task_group(group);
}
}
static void base_set (switch_core_session_t *session, const char *data, switch_stack_t stack)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论