mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 03:41:43 +02:00
Remove unused shared_from_this
This commit is contained in:
parent
a01f61b3c8
commit
7b268b83df
8 changed files with 30 additions and 39 deletions
|
@ -62,9 +62,8 @@ void PublishAvahi::publish(const std::vector<mDNSService>& services)
|
|||
|
||||
void PublishAvahi::poll()
|
||||
{
|
||||
auto self = shared_from_this();
|
||||
timer_.expires_after(std::chrono::milliseconds(50));
|
||||
timer_.async_wait([self, this](const boost::system::error_code& ec) {
|
||||
timer_.async_wait([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