Starting a second earlier

This commit is contained in:
Nora Shoemaker 2015-07-24 14:34:53 -07:00
parent ec617ae6e5
commit 278247faa9
1 changed files with 3 additions and 0 deletions

View File

@ -771,6 +771,9 @@ void Worker::run() {
}
} else {
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);
}