mirror of
https://github.com/badaix/snapcast.git
synced 2025-07-15 15:45:40 +02:00
Fix warnings
This commit is contained in:
parent
92cc5d4e10
commit
70d7b97026
16 changed files with 33 additions and 23 deletions
|
@ -57,14 +57,14 @@ void StreamServer::cleanup()
|
|||
}
|
||||
|
||||
|
||||
void StreamServer::addSession(std::shared_ptr<StreamSession> session)
|
||||
void StreamServer::addSession(const std::shared_ptr<StreamSession>& session)
|
||||
{
|
||||
session->setMessageReceiver(this);
|
||||
session->setBufferMs(settings_.stream.bufferMs);
|
||||
session->start();
|
||||
|
||||
std::lock_guard<std::recursive_mutex> mlock(sessionsMutex_);
|
||||
sessions_.emplace_back(std::move(session));
|
||||
sessions_.emplace_back(session);
|
||||
cleanup();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue