Small fixes and reformats

This commit is contained in:
badaix 2020-01-05 21:51:59 +01:00
parent db9079c179
commit d80c87351c
3 changed files with 3 additions and 3 deletions

View file

@ -68,7 +68,7 @@ void AsioStream<ReadStream>::wait(Timer& timer, const std::chrono::duration<Rep,
{
auto self = this->shared_from_this();
timer.expires_after(duration);
timer.async_wait([self, handler = std::move(handler)](const boost::system::error_code& ec) {
timer.async_wait([ self, handler = std::move(handler) ](const boost::system::error_code& ec) {
if (ec)
{
LOG(ERROR, "AsioStream") << "Error during async wait: " << ec.message() << "\n";