get the current time when adding timers
This commit is contained in:
parent
eabb24ae8a
commit
5db556c541
1 changed files with 1 additions and 0 deletions
|
@ -511,6 +511,7 @@ void ob_main_loop_timeout_add(ObMainLoop *loop,
|
|||
t->data = data;
|
||||
t->destroy = notify;
|
||||
t->del_me = FALSE;
|
||||
g_get_current_time(&now);
|
||||
t->last = t->timeout = loop->now;
|
||||
g_time_val_add(&t->timeout, t->delay);
|
||||
|
||||
|
|
Loading…
Reference in a new issue