mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-31 18:06:15 +02:00
io_context cleanups
This commit is contained in:
parent
945e19a4eb
commit
bdc6299523
11 changed files with 18 additions and 26 deletions
|
@ -55,7 +55,7 @@ ControlServer::~ControlServer()
|
|||
|
||||
void ControlServer::cleanup()
|
||||
{
|
||||
auto new_end = std::remove_if(sessions_.begin(), sessions_.end(), [](std::weak_ptr<ControlSession> session) { return session.expired(); });
|
||||
auto new_end = std::remove_if(sessions_.begin(), sessions_.end(), [](const std::weak_ptr<ControlSession>& session) { return session.expired(); });
|
||||
auto count = distance(new_end, sessions_.end());
|
||||
if (count > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue