提交 11a7f424 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix task delete issue in scheduled task in sep threads

上级 17b9f68f
......@@ -106,7 +106,7 @@ static int task_thread_loop(int done)
for (tp = globals.task_list; tp; tp = tp->next) {
if (done) {
tp->destroyed = 1;
} else {
} else if (!tp->destroyed) {
int64_t now = switch_epoch_time_now(NULL);
if (now >= tp->task.runtime && !tp->in_thread) {
int32_t diff = (int32_t) (now - tp->task.runtime);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论