mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-24 11:57:37 +02:00
Switch from deadline_timer to steady_timer
This commit is contained in:
parent
6c819b8f0c
commit
210ab80f71
6 changed files with 10 additions and 10 deletions
|
@ -63,7 +63,7 @@ void PublishAvahi::publish(const std::vector<mDNSService>& services)
|
|||
void PublishAvahi::poll()
|
||||
{
|
||||
auto self = shared_from_this();
|
||||
timer_.expires_from_now(boost::posix_time::milliseconds(50));
|
||||
timer_.expires_after(std::chrono::milliseconds(50));
|
||||
timer_.async_wait([self, this](const boost::system::error_code& ec) {
|
||||
if (!ec && (avahi_simple_poll_iterate(simple_poll, 0) == 0))
|
||||
poll();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue