mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-03 01:13:30 +00:00
Refactor out extraneous call to gettime
We were calling switch_epoch_time_now() twice for no good reason.
This commit is contained in:
parent
340b697e1b
commit
c006e97acc
@ -218,7 +218,7 @@ SWITCH_DECLARE(uint32_t) switch_scheduler_add_task(time_t task_runtime,
|
||||
}
|
||||
|
||||
container->func = func;
|
||||
container->task.created = switch_epoch_time_now(NULL);
|
||||
container->task.created = now;
|
||||
container->task.runtime = task_runtime;
|
||||
container->task.group = strdup(group ? group : "none");
|
||||
container->task.cmd_id = cmd_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user