nghttpx: RateLimit: Use ev_timer_again for clarity

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-11 00:32:08 +09:00
parent f7455d48cc
commit 1c0fa46dfa
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ RateLimit::RateLimit(struct ev_loop *loop, ev_io *w, size_t rate, size_t burst)
ev_timer_init(&t_, regencb, 0., 1.); ev_timer_init(&t_, regencb, 0., 1.);
t_.data = this; t_.data = this;
if (rate_ > 0) { if (rate_ > 0) {
ev_timer_start(loop_, &t_); ev_timer_again(loop_, &t_);
} }
} }