Starting a second earlier
This commit is contained in:
parent
ec617ae6e5
commit
278247faa9
|
@ -771,6 +771,9 @@ void Worker::run() {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ev_timer_again(loop, &timeout_watcher);
|
ev_timer_again(loop, &timeout_watcher);
|
||||||
|
|
||||||
|
// call callback so that we don't waste the first second
|
||||||
|
second_timeout_w_cb(loop, &timeout_watcher, 0);
|
||||||
}
|
}
|
||||||
ev_run(loop, 0);
|
ev_run(loop, 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue