mirror of
https://github.com/badaix/snapcast.git
synced 2025-06-04 11:51:44 +02:00
Reformat code
This commit is contained in:
parent
1aee05cead
commit
9fcfe09a9a
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ public:
|
|||
/// @param value the response message
|
||||
void setValue(std::unique_ptr<msg::BaseMessage> value)
|
||||
{
|
||||
boost::asio::post(strand_, [this, self = shared_from_this(), val = std::move(value)]() mutable {
|
||||
boost::asio::post(strand_, [ this, self = shared_from_this(), val = std::move(value) ]() mutable {
|
||||
timer_.cancel();
|
||||
if (handler_)
|
||||
handler_({}, std::move(val));
|
||||
|
@ -79,7 +79,7 @@ public:
|
|||
void startTimer(const chronos::usec& timeout)
|
||||
{
|
||||
timer_.expires_after(timeout);
|
||||
timer_.async_wait(boost::asio::bind_executor(strand_, [this, self = shared_from_this()](boost::system::error_code ec) {
|
||||
timer_.async_wait(boost::asio::bind_executor(strand_, [ this, self = shared_from_this() ](boost::system::error_code ec) {
|
||||
if (!handler_)
|
||||
return;
|
||||
if (!ec)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue