fixed rate limited udp socket timer issue
This commit is contained in:
parent
f6669c64c5
commit
70ea511409
|
@ -744,7 +744,7 @@ void rate_limited_udp_socket::on_tick(error_code const& e)
|
||||||
if (e) return;
|
if (e) return;
|
||||||
if (is_closed()) return;
|
if (is_closed()) return;
|
||||||
error_code ec;
|
error_code ec;
|
||||||
ptime now = time_now();
|
ptime now = time_now_hires();
|
||||||
m_timer.expires_at(now + seconds(1), ec);
|
m_timer.expires_at(now + seconds(1), ec);
|
||||||
m_timer.async_wait(boost::bind(&rate_limited_udp_socket::on_tick, this, _1));
|
m_timer.async_wait(boost::bind(&rate_limited_udp_socket::on_tick, this, _1));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue