Remove unused shared_from_this

This commit is contained in:
badaix 2020-01-08 21:22:56 +01:00
parent a01f61b3c8
commit 7b268b83df
8 changed files with 30 additions and 39 deletions

View file

@ -168,8 +168,7 @@ void StreamSession::send_next()
void StreamSession::sendAsync(shared_const_buffer const_buf, bool send_now)
{
auto self = shared_from_this();
strand_.post([this, self, const_buf, send_now]() {
strand_.post([this, const_buf, send_now]() {
if (send_now)
messages_.push_front(const_buf);
else