mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 00:26:41 +02:00
Remove unused lambda parameter
This commit is contained in:
parent
384e71b7c9
commit
5a3abc31ed
2 changed files with 6 additions and 5 deletions
|
@ -722,11 +722,11 @@ void StreamServer::onMessageReceived(StreamSession* streamSession, const msg::Ba
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void StreamServer::saveConfig()
|
void StreamServer::saveConfig(const std::chrono::milliseconds& deferred)
|
||||||
{
|
{
|
||||||
config_timer_.cancel();
|
config_timer_.cancel();
|
||||||
config_timer_.expires_after(2s);
|
config_timer_.expires_after(deferred);
|
||||||
config_timer_.async_wait([this](const boost::system::error_code& ec) {
|
config_timer_.async_wait([](const boost::system::error_code& ec) {
|
||||||
if (!ec)
|
if (!ec)
|
||||||
{
|
{
|
||||||
LOG(DEBUG) << "Saving config\n";
|
LOG(DEBUG) << "Saving config\n";
|
||||||
|
|
|
@ -83,8 +83,9 @@ private:
|
||||||
session_ptr getStreamSession(StreamSession* session) const;
|
session_ptr getStreamSession(StreamSession* session) const;
|
||||||
void ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcpp::entity_ptr& response, jsonrpcpp::notification_ptr& notification) const;
|
void ProcessRequest(const jsonrpcpp::request_ptr request, jsonrpcpp::entity_ptr& response, jsonrpcpp::notification_ptr& notification) const;
|
||||||
void cleanup();
|
void cleanup();
|
||||||
/// save the server state deferred after 2s without a change to prevent blocking and too much disk io
|
/// Save the server state deferred to prevent blocking and lower disk io
|
||||||
void saveConfig();
|
/// @param deferred the delay after the last call to saveConfig
|
||||||
|
void saveConfig(const std::chrono::milliseconds& deferred = std::chrono::seconds(2));
|
||||||
|
|
||||||
mutable std::recursive_mutex sessionsMutex_;
|
mutable std::recursive_mutex sessionsMutex_;
|
||||||
mutable std::recursive_mutex clientMutex_;
|
mutable std::recursive_mutex clientMutex_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue