get the current time when adding timers

This commit is contained in:
Dana Jansens 2003-08-31 21:12:54 +00:00
parent eabb24ae8a
commit 5db556c541

View file

@ -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);