Fix warnings

This commit is contained in:
badaix 2025-02-09 22:15:53 +01:00
parent f6b1e3f5d4
commit 6f03576270
16 changed files with 33 additions and 23 deletions

View file

@ -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();
}